From b3afd5330bf1f83222d69416c8cdcd9783a7919e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Fri, 15 Apr 2022 02:19:14 +0200 Subject: [PATCH] :art: Improve non callable err message --- src/lib/lib_class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/lib_class.c b/src/lib/lib_class.c index 322a683b..55f337da 100644 --- a/src/lib/lib_class.c +++ b/src/lib/lib_class.c @@ -35,7 +35,7 @@ static OP_CHECK(opck_class_call) { static OP_CHECK(opck_basic_ctor) { const Exp_Call *call = (Exp_Call *)data; // change to *no know constructor for {+G}%s{0}*? - ERR_N(exp_self(call)->pos, _("can't call a non-callable value")); + ERR_N(call->func->pos, _("can't call a non-callable value")); } GWION_IMPORT(class) { -- 2.43.0