Post a notification when the user cannot access a file

This commit is contained in:
Ben Ogle
2015-01-07 16:01:23 -08:00
parent 4138b95146
commit ca1f66d197
3 changed files with 27 additions and 0 deletions

View File

@@ -455,6 +455,8 @@ class Workspace extends Model
atom.notifications.addWarning(error.message)
else if error.code is 'ENOENT' and error.path?
atom.notifications.addWarning("No such file '#{error.path}'")
else if error.code is 'EACCES' and error.path?
atom.notifications.addWarning("Permission denied '#{error.path}'")
return Q()
Q(item)