tiny bug fix for coffeescript compilation errors

This commit is contained in:
John Bintz 2011-05-14 10:28:27 -04:00
parent cc943330f2
commit 690858e342

View File

@ -86,7 +86,7 @@ files = files.flatten.compact.collect { |file|
begin
%{<script type="text/javascript">#{CoffeeScript.compile(fh = File.open(file))}</script>}
rescue CoffeeScript::CompilationError => e
puts "[%s] %s: %s" % [ 'coffeescript'.color(:red), file.color(:yellow), e.message.color(:white) ]
puts "[%s] %s: %s" % [ 'coffeescript'.color(:red), file.color(:yellow), e.message.to_s.color(:white) ]
exit 1
ensure
fh.close