From: Shawn M Moore Date: Thu, 14 Jun 2012 16:15:58 +0000 (-0500) Subject: Convert extends() to throw_exception X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=09b61e3f8cd2dcb086e2ca1e17ffe8dbd01e2d81;p=gitmo%2FMoose.git Convert extends() to throw_exception --- diff --git a/lib/Moose.pm b/lib/Moose.pm index d84217b..b454797 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -70,7 +70,7 @@ sub throw_exception { sub extends { my $meta = shift; - Moose->throw_error("Must derive at least one class") unless @_; + Moose->throw_exception("Must derive at least one class") unless @_; # this checks the metaclass to make sure # it is correct, sometimes it can get out