X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FMethod%2FAugmented.pm;h=5aa56f0cbe946a7a9d0c748b5a830e1595a82c47;hb=aead17e74252e3884f9f8e39912ca98fdf4b4dd5;hp=1ecef3a4fcb3bb758130b9948a317d717c25d3cb;hpb=a7e9b05b9505cd4d2d642ead617de0eb7074e23f;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Method/Augmented.pm b/lib/Moose/Meta/Method/Augmented.pm index 1ecef3a..5aa56f0 100644 --- a/lib/Moose/Meta/Method/Augmented.pm +++ b/lib/Moose/Meta/Method/Augmented.pm @@ -3,9 +3,7 @@ package Moose::Meta::Method::Augmented; use strict; use warnings; -use Carp 'confess'; - -our $VERSION = '0.55_04'; +our $VERSION = '0.62'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -24,7 +22,7 @@ sub new { my $super = $meta->find_next_method_by_name($name); (defined $super) - || confess "You cannot augment '$name' because it has no super method"; + || $meta->throw_error("You cannot augment '$name' because it has no super method", data => $name); my $_super_package = $super->package_name; # BUT!,... if this is an overriden method ....