better catch coffeescript compile errors
This commit is contained in:
parent
9f27c50156
commit
e776f24970
@ -24,10 +24,11 @@ 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 CoffeeScript::CompilationError
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
puts e.message
|
puts e.message
|
||||||
puts e.backtrace.join("\n")
|
puts e.backtrace.join("\n")
|
||||||
raise e
|
puts
|
||||||
end
|
end
|
||||||
|
|
||||||
def run_on_change(paths)
|
def run_on_change(paths)
|
||||||
@ -42,10 +43,11 @@ module Guard
|
|||||||
run_all
|
run_all
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
rescue CoffeeScript::CompilationError
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
puts e.message
|
puts e.message
|
||||||
puts e.backtrace.join("\n")
|
puts e.backtrace.join("\n")
|
||||||
raise e
|
puts
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
Loading…
Reference in New Issue
Block a user