projects
/
gitmo/Moo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
d9a1c59
)
oops; went overboard and forgot the whole point of the alt-die branch; need to handle...
Toby Inkster [Sat, 15 Jun 2013 11:54:38 +0000 (12:54 +0100)]
lib/Method/Generate/Accessor.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Method/Generate/Accessor.pm
b/lib/Method/Generate/Accessor.pm
index
185de2c
..
7c3cf1f
100644
(file)
--- a/
lib/Method/Generate/Accessor.pm
+++ b/
lib/Method/Generate/Accessor.pm
@@
-22,6
+22,9
@@
sub _SIGDIE
{
our ($CurrentAttribute, $OrigSigDie);
$OrigSigDie ||= sub { die $_[0] };
+
+ return $OrigSigDie->(@_) if ref($_[0]);
+
my $attr_desc = _attr_desc(@$CurrentAttribute{qw(name init_arg)});
$OrigSigDie->("$CurrentAttribute->{step} for $attr_desc failed: $_[0]");
}