Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only catch ExecJS::ProgramError while compilation.

  • Loading branch information...
commit 45a051e39e3a6754eddd23438acb55aaa8241d30 1 parent b98d085
Michael Kessler netzpirat authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/guard/coffeescript/runner.rb
2  lib/guard/coffeescript/runner.rb
View
@@ -61,7 +61,7 @@ def compile_files(files, watchers, options)
begin
content = compile(file, options)
changed_files << write_javascript_file(content, file, directory, options)
- rescue => e
+ rescue ExecJS::ProgramError => e
error_message = file + ': ' + e.message.to_s
errors << error_message
Formatter.error(error_message)
Please sign in to comment.
Something went wrong with that request. Please try again.