mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
actually show errors in test2
This commit is contained in:
parent
05c3725b8e
commit
c783eff2a4
@ -95,9 +95,9 @@ describe "input tests", ->
|
||||
file_str = read_all input_fname name
|
||||
|
||||
parse_time, tree, err = benchmark -> parse.string file_str
|
||||
return err if err
|
||||
error err if err
|
||||
compile_time, code, err, pos = benchmark -> compile.tree tree
|
||||
return compile.format_error err, pos, file_str unless code
|
||||
error compile.format_error err, pos, file_str unless code
|
||||
|
||||
table.insert timings, {name, parse_time, compile_time}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user