1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-29 03:19:54 +00:00

Fix error message on an arity mismatch.

janet_call had a bad janet_printf.
This commit is contained in:
Calvin Rose 2019-04-07 23:53:50 -04:00
parent ed65d04b81
commit 675c1030fd

View File

@ -761,7 +761,7 @@ Janet janet_call(JanetFunction *fun, int32_t argc, const Janet *argv) {
/* Push frame */
janet_fiber_pushn(janet_vm_fiber, argv, argc);
if (janet_fiber_funcframe(janet_vm_fiber, fun)) {
janet_panicf("arity mismatch in %v", fun);
janet_panicf("arity mismatch in %v", janet_wrap_function(fun));
}
janet_fiber_frame(janet_vm_fiber)->flags |= JANET_STACKFRAME_ENTRANCE;