adding line number info to unclosed parens, objects, arrays, and indents

This commit is contained in:
Jeremy Ashkenas
2010-01-25 21:07:18 -05:00
parent 91e703052c
commit d6e206b420
3 changed files with 10 additions and 8 deletions

View File

@@ -141,7 +141,7 @@ Usage:
options[:no_wrap] = true if @options[:no_wrap]
options[:globals] = true if @options[:globals]
CoffeeScript.compile(script, options)
rescue CoffeeScript::ParseError, SyntaxError => e
rescue CoffeeScript::ParseError => e
STDERR.puts "#{source}: #{e.message}"
exit(1) unless @options[:watch]
nil