mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Use eventType from pathwatcher's watch errors in messages
This commit is contained in:
@@ -337,8 +337,8 @@ class Project extends Model
|
||||
buffer.onWillThrowWatchError ({error, handle}) =>
|
||||
handle()
|
||||
atom.notifications.addWarning """
|
||||
Unable to read file after file change event.
|
||||
Make sure you have permission to access the file.
|
||||
Unable to read file after file `#{error.eventType}` event.
|
||||
Make sure you have permission to access `#{@getPath()}`.
|
||||
""",
|
||||
detail: error.message
|
||||
dismissable: true
|
||||
|
||||
Reference in New Issue
Block a user