projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
21bfbf0
)
this test should be for definedness
Jesse Luehrs [Mon, 18 Oct 2010 01:37:44 +0000 (20:37 -0500)]
lib/Moose/Error/Default.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Error/Default.pm
b/lib/Moose/Error/Default.pm
index
2588083
..
a5c44de
100644
(file)
--- a/
lib/Moose/Error/Default.pm
+++ b/
lib/Moose/Error/Default.pm
@@
-17,7
+17,7
@@
Class::MOP::MiniTrait::apply(__PACKAGE__, 'Moose::Meta::Object::Trait');
sub new {
my ( $self, @args ) = @_;
- if(exists $ENV{MOOSE_ERROR_STYLE} && $ENV{MOOSE_ERROR_STYLE} eq 'croak') {
+ if (defined $ENV{MOOSE_ERROR_STYLE} && $ENV{MOOSE_ERROR_STYLE} eq 'croak') {
$self->create_error_croak( @args );
}
else {