From: Dave Rolsky Date: Sun, 10 Apr 2011 15:41:35 +0000 (-0500) Subject: Remove use of confess when we should use Moose->throw_error X-Git-Tag: 2.0100~84 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=87605c88a869330b324191a9173d51ce397dff28;p=gitmo%2FMoose.git Remove use of confess when we should use Moose->throw_error --- diff --git a/lib/Moose/Meta/TypeConstraint.pm b/lib/Moose/Meta/TypeConstraint.pm index c783a08..b07b5bb 100644 --- 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"); }