aboutsummaryrefslogtreecommitdiff
path: root/parser.lua
diff options
context:
space:
mode:
Diffstat (limited to 'parser.lua')
-rw-r--r--parser.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/parser.lua b/parser.lua
index 863e17e..a94418f 100644
--- a/parser.lua
+++ b/parser.lua
@@ -162,7 +162,8 @@ parse = function(nomsu_code, source)
end
errors = _accum_0
end
- error(table.concat(errors, "\n\n"), 0)
+ io.stderr:write("Errors occurred while parsing:\n\n", table.concat(errors, "\n\n"), '\n')
+ os.exit(1)
end
return tree
end