Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve multi-dispatch error text; TimToady++.
  • Loading branch information
jnthn committed Mar 3, 2012
1 parent 141cd63 commit a89da25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/binder/multidispatch.c
Expand Up @@ -788,7 +788,7 @@ static PMC* find_best_candidate(PARROT_INTERP, Rakudo_md_candidate_info **candid

mem_sys_free(possibles);
Parrot_ex_throw_from_c_args(interp, next, 1,
"No applicable candidates found to dispatch to for '%Ss'. Available candidates are:\n%Ss",
"Cannot call '%Ss'; none of these signatures match:\n%Ss",
(candidates[0] ? VTABLE_get_string(interp, candidates[0]->sub) : STRINGNULL),
signatures);
}
Expand All @@ -801,7 +801,7 @@ static PMC* find_best_candidate(PARROT_INTERP, Rakudo_md_candidate_info **candid

mem_sys_free(possibles);
Parrot_ex_throw_from_c_args(interp, next, 1,
"Ambiguous dispatch to multi '%Ss'. Ambiguous candidates had signatures:\n%Ss",
"Ambiguous call to '%Ss'; these signatures all matched:\n%Ss",
VTABLE_get_string(interp, candidates[0]->sub), signatures);
}
}
Expand Down

0 comments on commit a89da25

Please sign in to comment.