From 58d8f95588c6a0e4e2f44e33deed5b15ff7f0ecd Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 17 Jun 2011 09:34:18 -0400 Subject: [PATCH] report other errors better --- lib/jasmine/files_list.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/jasmine/files_list.rb b/lib/jasmine/files_list.rb index e7277fa..23f07a4 100644 --- a/lib/jasmine/files_list.rb +++ b/lib/jasmine/files_list.rb @@ -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