sub new {
my ( $self, @args ) = @_;
- if(exists $ENV{MOOSE_ERROR_TERSE} && $ENV{MOOSE_ERROR_TERSE}) {
+ if(exists $ENV{MOOSE_ERROR_STYLE} && $ENV{MOOSE_ERROR_STYLE} eq 'croak') {
$self->create_error_croak( @args );
}
else {
The default behavior is like L<Moose::Error::Confess>. To override this
to default to L<Moose::Error::Croak>'s behaviour on a system wide basis,
-set the MOOSE_ERROR_TERSE environment variable to a true value.
+set the MOOSE_ERROR_STYLE environment variable to C<croak>.
=head1 METHODS