Browse files

better catch coffeescript compile errors

  • Loading branch information...
1 parent 9f27c50 commit e776f249701fbe5f42bbbddf8e6529df56b983c6 @johnbintz committed Jun 17, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/guard/jasmine-headless-webkit.rb
View
6 lib/guard/jasmine-headless-webkit.rb
@@ -24,10 +24,11 @@ def run_all
UI.info "Guard::JasmineHeadlessWebkit running all specs..."
JasmineHeadlessWebkitRunner.run if run_all_things_before
@ran_before = false
+ rescue CoffeeScript::CompilationError
rescue StandardError => e
puts e.message
puts e.backtrace.join("\n")
- raise e
+ puts
end
def run_on_change(paths)
@@ -42,10 +43,11 @@ def run_on_change(paths)
run_all
end
end
+ rescue CoffeeScript::CompilationError
rescue StandardError => e
puts e.message
puts e.backtrace.join("\n")
- raise e
+ puts
end
private

0 comments on commit e776f24

Please sign in to comment.