From 0c9973ff0363e400d3d284339b77197c40c3f60c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 12 Jun 2018 13:56:15 -0700 Subject: Tidying up exceptions and error reporting. Also simplified the grammar a tiny bit. --- core/scopes.nom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/scopes.nom') diff --git a/core/scopes.nom b/core/scopes.nom index 72631c0..02ad73d 100644 --- a/core/scopes.nom +++ b/core/scopes.nom @@ -30,7 +30,7 @@ compile [using %definitions %body, using %definitions do %body] to \%setup_lua if not ok then ACTIONS, COMPILE_ACTIONS, ARG_ORDERS = old_actions, old_compile_actions, old_arg_orders - error(ret) + error(ret, 0) end if not fell_through then ACTIONS, COMPILE_ACTIONS, ARG_ORDERS = old_actions, old_compile_actions, old_arg_orders @@ -42,7 +42,7 @@ compile [using %definitions %body, using %definitions do %body] to \%body_lua ACTIONS, COMPILE_ACTIONS, ARG_ORDERS = old_actions, old_compile_actions, old_arg_orders if not ok then - error(ret) + error(ret, 0) end if not fell_through then return ret -- cgit v1.2.3