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.0800~32 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9f4682583eaf20565077ca8e95ba55a9cb6496a2;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 973b7b1..56f3bc9 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"' ) . ';', '}', );