Skip to content

Commit

Permalink
Small change for MooseX::Attribute::TypeConstraint::CustomizeFatal
Browse files Browse the repository at this point in the history
  • Loading branch information
upasana-me committed Apr 26, 2015
1 parent d5cad95 commit 7d4c36b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Moose/Meta/Attribute.pm
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,8 @@ sub _inline_check_constraint {
'type_constraint_message => $msg , '.
'class_name => $class_name, '.
'attribute_name => "'.$attr_name.'",'.
'value => '.$value
'value => '.$value,
$value
).';',
'}',
);
Expand All @@ -708,7 +709,8 @@ sub _inline_check_constraint {
'type_constraint_message => $msg , '.
'class_name => $class_name, '.
'attribute_name => "'.$attr_name.'",'.
'value => '.$value
'value => '.$value,
$value
).';',
'}',
);
Expand Down
1 change: 1 addition & 0 deletions lib/Moose/Meta/Method/Accessor/Native/Collection.pm
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ sub _inline_check_member_constraint {
'class_name => $class_name,'.
'value => $new_val,'.
'new_member => 1',
'$new_val'
) . ';',
'}',
'}',
Expand Down

0 comments on commit 7d4c36b

Please sign in to comment.