From 3022f3e0587fc4e79853d7240c9d8716eb3f5a3a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 17 Mar 2021 00:53:07 +0100 Subject: [PATCH] :art: Improve error --- src/parse/check.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parse/check.c b/src/parse/check.c index 305e02cf..81e00bd4 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -292,6 +292,7 @@ ANN static Type prim_id_non_res(const Env env, const Symbol *data) { gwerr_basic(_("Invalid variable"), _("not legit at this point."), "did you mean:", env->name, prim_pos(data), 0); did_you_mean_nspc(v ? value_owner(env, v) : env->curr, s_name(sym)); + env->context->error++; return NULL; } prim_self(data)->value = v; -- 2.43.0