summaryrefslogtreecommitdiff
path: root/err.c
diff options
context:
space:
mode:
Diffstat (limited to 'err.c')
-rw-r--r--err.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/err.c b/err.c
index 823c039..94d6d64 100644
--- a/err.c
+++ b/err.c
@@ -187,6 +187,9 @@ static void err_print_footer_(Location where) {
static void err_vprint(Location where, const char *fmt, va_list args) {
if (location_is_ctx_disabled(where)) return;
+ if (where.start) {
+ where.start->pos.ctx->have_errored = true;
+ }
err_print_header_(where);
err_vfprint(fmt, args);
err_print_footer_(where);