mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Add a notification when the init script can’t be loaded
This commit is contained in:
@@ -776,7 +776,9 @@ class Atom extends Model
|
||||
try
|
||||
require(userInitScriptPath) if fs.isFileSync(userInitScriptPath)
|
||||
catch error
|
||||
console.error "Failed to load `#{userInitScriptPath}`", error.stack, error
|
||||
atom.notifications.addError "Failed to load `#{userInitScriptPath}`",
|
||||
detail: error.message
|
||||
dismissable: true
|
||||
|
||||
# Require the module with the given globals.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user