From c3e73bdd263c04ca60fb26df0044e348fc70fd6c Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 8 Jul 2015 13:15:45 -0700 Subject: [PATCH] Add custom notification for EIO --- src/pane.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pane.coffee b/src/pane.coffee index a66eacbce..1f85c3b4e 100644 --- a/src/pane.coffee +++ b/src/pane.coffee @@ -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")