report other errors better

This commit is contained in:
John Bintz 2011-06-17 09:34:18 -04:00
parent 293763cc1e
commit 58d8f95588

View File

@ -81,6 +81,9 @@ module Jasmine
fh.close
end
end
rescue StandardError => e
puts "[%s] Error in compiling one of the followng: %s" % [ 'coffeescript'.color(:red), files.join(' ').color(:yellow) ]
raise e
ensure
files.clear
end