Author: chromatic
Date: Tue Nov 11 11:26:13 2008
New Revision: 32552
Modified:
trunk/languages/perl6/src/pmc/perl6multisub.pmc
Log:
[Rakudo] Added sub name to multidispatch failure message in Perl6MultiSub PMC.
Modified: trunk/languages/perl6/src/pmc/perl6multisub.pmc
==============================================================================
--- trunk/languages/perl6/src/pmc/perl6multisub.pmc (original)
+++ trunk/languages/perl6/src/pmc/perl6multisub.pmc Tue Nov 11 11:26:13 2008
@@ -525,13 +525,13 @@
}
else if (possibles_count == 0) {
Parrot_ex_throw_from_c_args(interp, next, 1,
- "No applicable candidates found to dispatch to.");
- return NULL;
+ "No applicable candidates found to dispatch to for '%Ss'",
+ VTABLE_get_string(interp, candidates[0]->sub));
}
else {
Parrot_ex_throw_from_c_args(interp, next, 1,
- "Ambiguous dispatch.");
- return NULL;
+ "Ambiguous dispatch to multi '%Ss'",
+ VTABLE_get_string(interp, candidates[0]->sub));
}
}
else {