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=822b039169330564226f16146856453f514bcc7b;hpb=19fabdd362b0d39023e2359b59701c4fc42247de;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Method/Augmented.pm b/lib/Moose/Meta/Method/Augmented.pm index 822b039..5aa56f0 100644 --- a/lib/Moose/Meta/Method/Augmented.pm +++ b/lib/Moose/Meta/Method/Augmented.pm @@ -3,9 +3,8 @@ package Moose::Meta::Method::Augmented; use strict; use warnings; -use Carp 'confess'; - -our $VERSION = '0.52'; +our $VERSION = '0.62'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::Method'; @@ -23,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 ....