Add custom notification for EIO

This commit is contained in:
Kevin Sawicki
2015-07-08 13:15:45 -07:00
parent 3e744b0714
commit c3e73bdd26

View File

@@ -696,6 +696,8 @@ class Pane extends Model
addWarningWithPath('Unable to save file: No such device or address')
else if error.code is 'ENOTSUP'
addWarningWithPath('Unable to save file: Operation not supported on socket')
else if error.code is 'EIO'
addWarningWithPath('Unable to save file: I/O error writing file')
else if errorMatch = /ENOTDIR, not a directory '([^']+)'/.exec(error.message)
fileName = errorMatch[1]
atom.notifications.addWarning("Unable to save file: A directory in the path '#{fileName}' could not be written to")