1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-20 02:07:40 +00:00

Improve error message on bad method calls.

This commit is contained in:
Calvin Rose
2019-08-05 19:06:58 -05:00
parent 850a2d7f79
commit 2193193b12
2 changed files with 12 additions and 7 deletions

View File

@@ -107,7 +107,6 @@ Janet janet_getmethod(const uint8_t *method, const JanetMethod *methods) {
return janet_wrap_cfunction(methods->cfun);
methods++;
}
janet_panicf("unknown method :%S invoked", method);
return janet_wrap_nil();
}