From 828b841f17a300fb1c5cf78da3623ee8eb7006b3 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Fri, 16 Jan 2015 11:24:24 -0800 Subject: [PATCH] Roll two whens into one --- src/workspace.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/workspace.coffee b/src/workspace.coffee index ca01c2694..51e1584dc 100644 --- a/src/workspace.coffee +++ b/src/workspace.coffee @@ -456,9 +456,7 @@ class Workspace extends Model atom.notifications.addWarning("#{error.message} Large file support is being tracked at [atom/atom#307](https://github.com/atom/atom/issues/307).") when 'EACCES' atom.notifications.addWarning("Permission denied '#{error.path}'") - when 'EPERM' - atom.notifications.addWarning("Unable to open '#{error.path}'", detail: error.message) - when 'EBUSY' + when 'EPERM', 'EBUSY' atom.notifications.addWarning("Unable to open '#{error.path}'", detail: error.message) else throw error