From ba40706265ab8c1d60df1ba4ff106fff398ea747 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Tue, 13 Jan 2015 17:02:49 -0800 Subject: [PATCH] =?UTF-8?q?Add=20a=20notification=20when=20the=20init=20sc?= =?UTF-8?q?ript=20can=E2=80=99t=20be=20loaded?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/atom.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/atom.coffee b/src/atom.coffee index c515f26be..0e2031e62 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -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. #