From 8c9ecbaf034dac494662f40f98ee3a2a1d1455f2 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 8 Jul 2015 14:06:56 -0700 Subject: [PATCH] Add custom notification for ESPIPE --- src/pane.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pane.coffee b/src/pane.coffee index 66edf70b7..fc861a95f 100644 --- a/src/pane.coffee +++ b/src/pane.coffee @@ -700,6 +700,8 @@ class Pane extends Model 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 error.code is 'ESPIPE' + addWarningWithPath('Unable to save file: Invalid seek') 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")