projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
4e36cf2
)
Remove use of confess when we should use Moose->throw_error
Dave Rolsky [Sun, 10 Apr 2011 15:41:35 +0000 (10:41 -0500)]
lib/Moose/Meta/TypeConstraint.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Meta/TypeConstraint.pm
b/lib/Moose/Meta/TypeConstraint.pm
index
c783a08
..
b07b5bb
100644
(file)
--- a/
lib/Moose/Meta/TypeConstraint.pm
+++ b/
lib/Moose/Meta/TypeConstraint.pm
@@
-253,7
+253,6
@@
sub _compile_hand_optimized_type_constraint {
unless ( ref $type_constraint ) {
require Moose;
- Carp::confess ("Hand optimized type constraint for " . $self->name . " is not a code reference");
Moose->throw_error("Hand optimized type constraint is not a code reference");
}