catch and report errors better

This commit is contained in:
John Bintz 2011-06-17 09:37:08 -04:00
parent e1a01fb44e
commit 9f27c50156
1 changed files with 8 additions and 0 deletions

View File

@ -24,6 +24,10 @@ module Guard
UI.info "Guard::JasmineHeadlessWebkit running all specs..." UI.info "Guard::JasmineHeadlessWebkit running all specs..."
JasmineHeadlessWebkitRunner.run if run_all_things_before JasmineHeadlessWebkitRunner.run if run_all_things_before
@ran_before = false @ran_before = false
rescue StandardError => e
puts e.message
puts e.backtrace.join("\n")
raise e
end end
def run_on_change(paths) def run_on_change(paths)
@ -38,6 +42,10 @@ module Guard
run_all run_all
end end
end end
rescue StandardError => e
puts e.message
puts e.backtrace.join("\n")
raise e
end end
private private