Skip to content
This repository
Browse code

better catch coffeescript compile errors

  • Loading branch information...
commit e776f249701fbe5f42bbbddf8e6529df56b983c6 1 parent 9f27c50
John Bintz authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 lib/guard/jasmine-headless-webkit.rb
6 lib/guard/jasmine-headless-webkit.rb
@@ -24,10 +24,11 @@ def run_all
24 24 UI.info "Guard::JasmineHeadlessWebkit running all specs..."
25 25 JasmineHeadlessWebkitRunner.run if run_all_things_before
26 26 @ran_before = false
  27 + rescue CoffeeScript::CompilationError
27 28 rescue StandardError => e
28 29 puts e.message
29 30 puts e.backtrace.join("\n")
30   - raise e
  31 + puts
31 32 end
32 33
33 34 def run_on_change(paths)
@@ -42,10 +43,11 @@ def run_on_change(paths)
42 43 run_all
43 44 end
44 45 end
  46 + rescue CoffeeScript::CompilationError
45 47 rescue StandardError => e
46 48 puts e.message
47 49 puts e.backtrace.join("\n")
48   - raise e
  50 + puts
49 51 end
50 52
51 53 private

0 comments on commit e776f24

Please sign in to comment.
Something went wrong with that request. Please try again.