Handle UNKNOWN save errors
Esse commit está contido em:
+1
-3
@@ -679,9 +679,7 @@ class Pane extends Model
|
|||||||
atom.notifications.addWarning("Unable to save file: #{error.message}")
|
atom.notifications.addWarning("Unable to save file: #{error.message}")
|
||||||
else if error.code is 'EACCES' and error.path?
|
else if error.code is 'EACCES' and error.path?
|
||||||
atom.notifications.addWarning("Unable to save file: Permission denied '#{error.path}'")
|
atom.notifications.addWarning("Unable to save file: Permission denied '#{error.path}'")
|
||||||
else if error.code is 'EPERM' and error.path?
|
else if error.code in ['EPERM', 'EBUSY', 'UNKNOWN'] and error.path?
|
||||||
atom.notifications.addWarning("Unable to save file '#{error.path}'", detail: error.message)
|
|
||||||
else if error.code is 'EBUSY' and error.path?
|
|
||||||
atom.notifications.addWarning("Unable to save file '#{error.path}'", detail: error.message)
|
atom.notifications.addWarning("Unable to save file '#{error.path}'", detail: error.message)
|
||||||
else if error.code is 'EROFS' and error.path?
|
else if error.code is 'EROFS' and error.path?
|
||||||
atom.notifications.addWarning("Unable to save file: Read-only file system '#{error.path}'")
|
atom.notifications.addWarning("Unable to save file: Read-only file system '#{error.path}'")
|
||||||
|
|||||||
Referência em uma Nova Issue
Bloquear um usuário