make sure ::Confess always confesses
Jesse Luehrs [Sun, 17 Oct 2010 21:35:53 +0000 (16:35 -0500)]
lib/Moose/Error/Confess.pm

index b7ec44b..bf42d98 100644 (file)
@@ -9,6 +9,11 @@ our $AUTHORITY = 'cpan:STEVAN';
 
 use base qw(Moose::Error::Default);
 
+sub new {
+    my ( $self, @args ) = @_;
+    $self->create_error_confess(@args);
+}
+
 __PACKAGE__
 
 __END__