Skip to content

Commit

Permalink
When there's no .^find_method nor method cache, output debugname
Browse files Browse the repository at this point in the history
to lessen the amount of confusion caused by this rare,
but often not easy to figure out exception
  • Loading branch information
timo committed Jun 27, 2019
1 parent 459e686 commit 065b2b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/6model/6model.c
Expand Up @@ -137,8 +137,8 @@ void MVM_6model_find_method(MVMThreadContext *tc, MVMObject *obj, MVMString *nam
char *c_name = MVM_string_utf8_encode_C_string(tc, name);
char *waste[] = { c_name, NULL };
MVM_exception_throw_adhoc_free(tc, waste,
"Cannot find method '%s': no method cache and no .^find_method",
c_name);
"Cannot find method '%s' on '%s': no method cache and no .^find_method",
c_name, MVM_6model_get_debug_name(tc, obj));
}
else {
res->o = tc->instance->VMNull;
Expand Down

0 comments on commit 065b2b4

Please sign in to comment.