From 9f27c50156a5aa76e22ef86eacac313eabbb26b4 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 17 Jun 2011 09:37:08 -0400 Subject: [PATCH] catch and report errors better --- lib/guard/jasmine-headless-webkit.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/guard/jasmine-headless-webkit.rb b/lib/guard/jasmine-headless-webkit.rb index 9ce863e..7e100a6 100644 --- a/lib/guard/jasmine-headless-webkit.rb +++ b/lib/guard/jasmine-headless-webkit.rb @@ -24,6 +24,10 @@ module Guard UI.info "Guard::JasmineHeadlessWebkit running all specs..." JasmineHeadlessWebkitRunner.run if run_all_things_before @ran_before = false + rescue StandardError => e + puts e.message + puts e.backtrace.join("\n") + raise e end def run_on_change(paths) @@ -38,6 +42,10 @@ module Guard run_all end end + rescue StandardError => e + puts e.message + puts e.backtrace.join("\n") + raise e end private