mirror of
https://github.com/atom/atom.git
synced 2026-02-14 16:45:14 -05:00
Post a notification when the user cannot access a file
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user