Add custom notification for ENOTSUP

This commit is contained in:
Kevin Sawicki 2015-07-08 13:11:27 -07:00
parent 7d88f9ea66
commit 3e744b0714

View File

@ -694,6 +694,8 @@ class Pane extends Model
addWarningWithPath('Unable to save file: No space left on device')
else if error.code is 'ENXIO'
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 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")