Throw an error when the error is unhandled

This commit is contained in:
Ben Ogle
2015-01-07 16:04:07 -08:00
parent ca1f66d197
commit c20d3a8182
2 changed files with 10 additions and 0 deletions

View File

@@ -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)