From dcbff35ef5dce9b69fdb7f6dd485dbdd6d22d6fe Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Thu, 12 Feb 2015 09:55:17 -0800 Subject: [PATCH] Handle EEXIST error with a better message Closes #5518 --- src/pane.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pane.coffee b/src/pane.coffee index f1bc34abf..15f6fa0da 100644 --- a/src/pane.coffee +++ b/src/pane.coffee @@ -679,7 +679,7 @@ class Pane extends Model atom.notifications.addWarning("Unable to save file: #{error.message}") else if error.code is 'EACCES' and error.path? atom.notifications.addWarning("Unable to save file: Permission denied '#{error.path}'") - else if error.code in ['EPERM', 'EBUSY', 'UNKNOWN'] and error.path? + else if error.code in ['EPERM', 'EBUSY', 'UNKNOWN', 'EEXIST'] and error.path? atom.notifications.addWarning("Unable to save file '#{error.path}'", detail: error.message) else if error.code is 'EROFS' and error.path? atom.notifications.addWarning("Unable to save file: Read-only file system '#{error.path}'")