]> Nishi Git Mirror - gwion.git/commitdiff
:art: Improve non callable err message
authorJérémie Astor <fennecdjay@gmail.com>
Fri, 15 Apr 2022 00:19:14 +0000 (02:19 +0200)
committerJérémie Astor <fennecdjay@gmail.com>
Fri, 15 Apr 2022 00:19:14 +0000 (02:19 +0200)
src/lib/lib_class.c

index 322a683b142e34a97bb747dec14f73a021429d74..55f337dabb7c505b0b708a43dc458c6d5db32d9c 100644 (file)
@@ -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) {