diff --git a/lib/gui/pages/main/controllers/flash.js b/lib/gui/pages/main/controllers/flash.js index 5481e798..24b22ab0 100644 --- a/lib/gui/pages/main/controllers/flash.js +++ b/lib/gui/pages/main/controllers/flash.js @@ -97,6 +97,12 @@ module.exports = function( image, drive }); + } else if (error.code === 'EIO') { + FlashErrorModalService.show(messages.error.inputOutput()); + AnalyticsService.logEvent('Input/output error', { + image, + drive + }); } else if (error.code === 'ENOSPC') { FlashErrorModalService.show(messages.error.notEnoughSpaceInDrive()); AnalyticsService.logEvent('Out of space', { diff --git a/lib/shared/messages.js b/lib/shared/messages.js index bd6be0ca..c4353ae5 100644 --- a/lib/shared/messages.js +++ b/lib/shared/messages.js @@ -92,6 +92,12 @@ module.exports = { 'Looks like Etcher lost access to the drive.', 'Did it get unplugged accidentally?', '\n\nSometimes this error is caused by faulty readers that don\'t provide stable access to the drive.' + ].join(' ')), + + inputOutput: _.template([ + 'Looks like Etcher is not able to write to this location of the drive.', + 'This error is usually caused by a faulty drive, reader, or port.', + '\n\nPlease try again with another drive, reader, or port.' ].join(' ')) }