Add a notification when the init script can’t be loaded

This commit is contained in:
Ben Ogle
2015-01-13 17:02:49 -08:00
parent 683203a9a1
commit ba40706265

View File

@@ -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.
#