mirror of
https://github.com/atom/atom.git
synced 2026-02-14 16:45:14 -05:00
Roll two whens into one
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user