From 60189c013562e4fe67e5c17cfd64e456498a3140 Mon Sep 17 00:00:00 2001 From: probablycorey Date: Tue, 26 Mar 2013 14:19:45 -0700 Subject: [PATCH] exit(1) when spec-bootstrap throws an error --- spec/spec-bootstrap.coffee | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/spec/spec-bootstrap.coffee b/spec/spec-bootstrap.coffee index dbffbeece..1b0ffcd48 100644 --- a/spec/spec-bootstrap.coffee +++ b/spec/spec-bootstrap.coffee @@ -1,6 +1,10 @@ -require 'atom' -atom.show() -{runSpecSuite} = require 'jasmine-helper' +try + require 'atom' + atom.show() + {runSpecSuite} = require 'jasmine-helper' -document.title = "Spec Suite" -runSpecSuite "spec-suite" + document.title = "Spec Suite" + runSpecSuite "spec-suite" +catch e + console.error(e.stack) + atom.exit(1)