diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-12 13:56:15 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-12 13:56:35 -0700 |
| commit | 0c9973ff0363e400d3d284339b77197c40c3f60c (patch) | |
| tree | 00c51a0cea933b1cec28f45561e3ba74dde466ff /core/scopes.nom | |
| parent | 7cd512d15e5bc22c529d5b4e3e02a41fe1e84208 (diff) | |
Tidying up exceptions and error reporting. Also simplified the grammar a
tiny bit.
Diffstat (limited to 'core/scopes.nom')
| -rw-r--r-- | core/scopes.nom | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
