[Moose-commits] r7753 - Class-MOP/trunk/lib/Class/MOP

autarch at code2.0beta.co.uk autarch at code2.0beta.co.uk
Fri Feb 20 18:22:35 GMT 2009


Author: autarch
Date: 2009-02-20 10:22:35 -0800 (Fri, 20 Feb 2009)
New Revision: 7753

Modified:
   Class-MOP/trunk/lib/Class/MOP/Class.pm
Log:
Make the error message for an unfound method (that is being wrapped) a little clearer.


Modified: Class-MOP/trunk/lib/Class/MOP/Class.pm
===================================================================
--- Class-MOP/trunk/lib/Class/MOP/Class.pm	2009-02-20 18:19:22 UTC (rev 7752)
+++ Class-MOP/trunk/lib/Class/MOP/Class.pm	2009-02-20 18:22:35 UTC (rev 7753)
@@ -676,7 +676,7 @@
             $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




More information about the Moose-commits mailing list