From: Yuval Kogman Date: Tue, 16 Sep 2008 18:07:42 +0000 (+0000) Subject: rename 'error' error parameter to 'last_error' X-Git-Tag: 0.58~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fcab1742b41d3860dcf0da4a9723b267e6900095;p=gitmo%2FMoose.git rename 'error' error parameter to 'last_error' --- diff --git a/lib/Moose/Meta/Class.pm b/lib/Moose/Meta/Class.pm index db69521..7278393 100644 --- a/lib/Moose/Meta/Class.pm +++ b/lib/Moose/Meta/Class.pm @@ -679,7 +679,7 @@ sub create_error { unshift @args, "message"; } - my %args = ( metaclass => $self, error => $@, @args ); + my %args = ( metaclass => $self, last_error => $@, @args ); $args{depth} += $error_level;