mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Throw an error when the error is unhandled
This commit is contained in:
@@ -457,6 +457,8 @@ class Workspace extends Model
|
||||
atom.notifications.addWarning("No such file '#{error.path}'")
|
||||
else if error.code is 'EACCES' and error.path?
|
||||
atom.notifications.addWarning("Permission denied '#{error.path}'")
|
||||
else
|
||||
throw error
|
||||
return Q()
|
||||
|
||||
Q(item)
|
||||
|
||||
Reference in New Issue
Block a user