Skip to content

Commit

Permalink
Raise custom error on CoffeeScript compile fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
stereosteve committed Oct 10, 2011
1 parent 9c1d196 commit 0a8e49b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/stitch/compilers/coffeescript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class CoffeeScriptCompiler < Compiler
def compile(path)
source = File.read(path)
CoffeeScript.compile(source)
rescue => e
raise RuntimeError, "#{path}: #{e}", ''
end
end
end

0 comments on commit 0a8e49b

Please sign in to comment.