From: Dave Rolsky Date: Fri, 20 Feb 2009 18:22:35 +0000 (+0000) Subject: Make the error message for an unfound method (that is being wrapped) a little clearer. X-Git-Tag: 0.77_01~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=34f7b8ea1df56dc0d5c6cf3ae03a7cfe44007085;p=gitmo%2FClass-MOP.git Make the error message for an unfound method (that is being wrapped) a little clearer. --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index 7b4057c..cfc27f4 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -676,7 +676,7 @@ sub add_method { $method = $self->find_next_method_by_name($method_name); # die if it does not exist (defined $method) - || confess "The method '$method_name' is not found in the inheritance hierarchy for class " . $self->name; + || confess "The method '$method_name' was not found in the inheritance hierarchy for " . $self->name; # and now make sure to wrap it # even if it is already wrapped # because we need a new sub ref