Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
raise X::Method::NotFound even for '' methods.
  • Loading branch information
timo committed Mar 13, 2013
1 parent cee2f91 commit 103481f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/Exception.pm
Expand Up @@ -97,8 +97,7 @@ sub EXCEPTION(|) {
my int $type = nqp::atkey_i($parrot_ex, 'type');
my $ex;
if $type == pir::const::EXCEPTION_METHOD_NOT_FOUND &&
nqp::p6box_s(nqp::atkey_s($parrot_ex, 'message'))
~~ /"Method '" (.+?) "' not found for invocant of class '" (.+)\'$/ {
nqp::p6box_s(nqp::atkey_s($parrot_ex, 'message')) ~~ /"Method '" (.*?) "' not found for invocant of class '" (.+)\'$/ {

$ex := X::Method::NotFound.new(
method => ~$0,
Expand Down

0 comments on commit 103481f

Please sign in to comment.