From: Jérémie Astor Date: Fri, 15 Apr 2022 00:19:14 +0000 (+0200) Subject: :art: Improve non callable err message X-Git-Tag: nightly~313 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=b3afd5330bf1f83222d69416c8cdcd9783a7919e;p=gwion.git :art: Improve non callable err message --- 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) {