From: Jesse Luehrs Date: Thu, 5 Jul 2012 17:33:25 +0000 (-0500) Subject: no idea what's up with this error message X-Git-Tag: 2.0604~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=44e359750905326b79e8bf48bf926dec5511b66d;p=gitmo%2FMoose.git no idea what's up with this error message or why it was different from the non-inlined case, especially when the non-inlined version is less nonsensical --- diff --git a/lib/Moose/Meta/Attribute.pm b/lib/Moose/Meta/Attribute.pm index e21ec2f..925513b 100644 --- a/lib/Moose/Meta/Attribute.pm +++ b/lib/Moose/Meta/Attribute.pm @@ -648,8 +648,7 @@ sub _inline_check_required { return ( 'if (@_ < 2) {', $self->_inline_throw_error( - '"Attribute (' . $attr_name . ') is required, so cannot ' - . 'be set to undef"' # defined $_[1] is not good enough + '"Attribute (' . $attr_name . ') is required"' ) . ';', '}', );