Add custom notification for EINTR

This commit is contained in:
Kevin Sawicki
2015-07-08 14:05:37 -07:00
parent c3e73bdd26
commit 485f4dc3a3

View File

@@ -698,6 +698,8 @@ class Pane extends Model
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 error.code is 'EINTR'
addWarningWithPath('Unable to save file: Interrupted system call')
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")