Skip to content

Commit 93d6828

Browse files
committed
Small change for MooseX::Attribute::TypeConstraint::CustomizeFatal
1 parent d5cad95 commit 93d6828

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/Moose/Meta/Attribute.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ sub _inline_check_constraint {
693693
'type_constraint_message => $msg , '.
694694
'class_name => $class_name, '.
695695
'attribute_name => "'.$attr_name.'",'.
696-
'value => '.$value
696+
'value => '.$value, $value
697697
).';',
698698
'}',
699699
);
@@ -708,7 +708,7 @@ sub _inline_check_constraint {
708708
'type_constraint_message => $msg , '.
709709
'class_name => $class_name, '.
710710
'attribute_name => "'.$attr_name.'",'.
711-
'value => '.$value
711+
'value => '.$value, $value
712712
).';',
713713
'}',
714714
);

lib/Moose/Meta/Method/Accessor/Native/Collection.pm

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ sub _inline_check_member_constraint {
115115
'class_name => $class_name,'.
116116
'value => $new_val,'.
117117
'new_member => 1',
118+
'$new_val'
118119
) . ';',
119120
'}',
120121
'}',

0 commit comments

Comments
 (0)