From: Jesse Luehrs Date: Sun, 8 Feb 2009 21:21:51 +0000 (+0000) Subject: error message for failed delegation should use the attribute name, not the delegate... X-Git-Tag: 0.69~39 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4da72c45030b36f43e7b9bfb15c38276f14db3a6;p=gitmo%2FMoose.git error message for failed delegation should use the attribute name, not the delegate name --- diff --git a/lib/Moose/Meta/Method/Delegation.pm b/lib/Moose/Meta/Method/Delegation.pm index 05bf31d..c924060 100644 --- a/lib/Moose/Meta/Method/Delegation.pm +++ b/lib/Moose/Meta/Method/Delegation.pm @@ -79,7 +79,7 @@ sub _initialize_body { || $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