From: Yuval Kogman Date: Thu, 4 Sep 2008 00:01:49 +0000 (+0000) Subject: bah X-Git-Tag: 0.58~54^2~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a9538ac90101d931f556b2649be34d4084d936e5;p=gitmo%2FMoose.git bah --- diff --git a/lib/Moose/Meta/Method/Constructor.pm b/lib/Moose/Meta/Method/Constructor.pm index 4b74983..8a523b2 100644 --- a/lib/Moose/Meta/Method/Constructor.pm +++ b/lib/Moose/Meta/Method/Constructor.pm @@ -19,10 +19,10 @@ sub new { my $meta = $options{metaclass}; (ref $options{options} eq 'HASH') - || $meta->throw_error("You must pass a hash of options", data => $options{options}); + || $class->throw_error("You must pass a hash of options", data => $options{options}); ($options{package_name} && $options{name}) - || $meta->throw_error("You must supply the package_name and name parameters $Class::MOP::Method::UPGRADE_ERROR_TEXT"); + || $class->throw_error("You must supply the package_name and name parameters $Class::MOP::Method::UPGRADE_ERROR_TEXT"); my $self = bless { # from our superclass