From 485f4dc3a3871e6a9dd61e2c855393d3b322fd28 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 8 Jul 2015 14:05:37 -0700 Subject: [PATCH] Add custom notification for EINTR --- src/pane.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pane.coffee b/src/pane.coffee index 1f85c3b4e..66edf70b7 100644 --- a/src/pane.coffee +++ b/src/pane.coffee @@ -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")