diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | match.c | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -2,6 +2,7 @@ * match.c (v_load): Fixed broken functionality. Failing to evaluate directives following the load and consume input properly. + Check for errors during the parse and throw an exception. 2012-03-01 Kaz Kylheku <kaz@kylheku.com> @@ -3413,6 +3413,10 @@ static val v_load(match_files_ctx *c) parse_reset(path); yyparse(); gc_state(gc); + + if (errors) + sem_error(specline, lit("load: errors encountered in ~s"), path, nao); + { val spec = get_spec(); val result = match_files(mf_spec(*c, spec)); |