From: Jérémie Astor Date: Tue, 16 Mar 2021 23:53:07 +0000 (+0100) Subject: :art: Improve error X-Git-Tag: nightly~828 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=3022f3e0587fc4e79853d7240c9d8716eb3f5a3a;p=gwion.git :art: Improve error --- 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;