mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
style(CLI): improve error message when drive doesn't exist anymore (#1222)
The current message is short and unfriendly. Fixes: https://github.com/resin-io/etcher/issues/1125 Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
parent
63dda89035
commit
da85aa31aa
@ -80,7 +80,10 @@ isElevated().then((elevated) => {
|
||||
});
|
||||
|
||||
if (!selectedDrive) {
|
||||
throw errors.createUserError('Drive not found', `${answers.drive} doesn't exist`);
|
||||
throw errors.createUserError(
|
||||
'The selected drive was not found',
|
||||
`We can't find ${answers.drive} in your system. Did you unplug the drive?`
|
||||
);
|
||||
}
|
||||
|
||||
return writer.writeImage(imagePath, selectedDrive, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user