[Moose-commits] r7588 - Moose/trunk/lib/Moose/Meta/Method

doy at code2.0beta.co.uk doy at code2.0beta.co.uk
Sun Feb 8 21:21:51 GMT 2009


Author: doy
Date: 2009-02-08 13:21:51 -0800 (Sun, 08 Feb 2009)
New Revision: 7588

Modified:
   Moose/trunk/lib/Moose/Meta/Method/Delegation.pm
Log:
error message for failed delegation should use the attribute name, not the delegate name



Modified: Moose/trunk/lib/Moose/Meta/Method/Delegation.pm
===================================================================
--- Moose/trunk/lib/Moose/Meta/Method/Delegation.pm	2009-02-08 21:13:43 UTC (rev 7587)
+++ Moose/trunk/lib/Moose/Meta/Method/Delegation.pm	2009-02-08 21:21:51 UTC (rev 7588)
@@ -79,7 +79,7 @@
             || $self->throw_error(
             "Cannot delegate $handle_name to $method_to_call because "
                 . "the value of "
-                . $self->name
+                . $self->associated_attribute->name
                 . " is not defined",
             method_name => $method_to_call,
             object      => $instance




More information about the Moose-commits mailing list