Skip to content

Commit c783eff

Browse files
committed
actually show errors in test2
1 parent 05c3725 commit c783eff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test2.moon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ describe "input tests", ->
9595
file_str = read_all input_fname name
9696

9797
parse_time, tree, err = benchmark -> parse.string file_str
98-
return err if err
98+
error err if err
9999
compile_time, code, err, pos = benchmark -> compile.tree tree
100-
return compile.format_error err, pos, file_str unless code
100+
error compile.format_error err, pos, file_str unless code
101101

102102
table.insert timings, {name, parse_time, compile_time}
103103

0 commit comments

Comments
 (0)