fix coffeescript compile error exceptions
This commit is contained in:
parent
cff6891a8d
commit
7c37c80a9a
@ -11,5 +11,9 @@ $:.unshift(File.join(gem_dir, 'lib'))
|
|||||||
puts "Running Jasmine specs..."
|
puts "Running Jasmine specs..."
|
||||||
|
|
||||||
require 'jasmine/headless/cli'
|
require 'jasmine/headless/cli'
|
||||||
exit Jasmine::Headless::CLI.run
|
begin
|
||||||
|
exit Jasmine::Headless::CLI.run
|
||||||
|
rescue StandardError => e
|
||||||
|
exit 1
|
||||||
|
end
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ module Jasmine
|
|||||||
CoffeeScript.compile(fh = File.open(file))
|
CoffeeScript.compile(fh = File.open(file))
|
||||||
rescue CoffeeScript::CompilationError => ne
|
rescue CoffeeScript::CompilationError => ne
|
||||||
puts "[%s] %s: %s" % [ 'coffeescript'.color(:red), file.color(:yellow), ne.message.to_s.color(:white) ]
|
puts "[%s] %s: %s" % [ 'coffeescript'.color(:red), file.color(:yellow), ne.message.to_s.color(:white) ]
|
||||||
exit 1
|
raise ne
|
||||||
ensure
|
ensure
|
||||||
fh.close
|
fh.close
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user