Skip to content

Commit

Permalink
confess
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingmuch committed Sep 29, 2008
1 parent a1f9b04 commit f01a540
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Devel/PartialDump.pm
@@ -1,7 +1,7 @@
#!/usr/bin/perl

package Devel::PartialDump;
use Mouse qw(has meta); # no need for anything else
use Mouse;

use Carp ();
use Scalar::Util qw(looks_like_number reftype blessed);
Expand Down Expand Up @@ -112,6 +112,7 @@ sub warn {
}

foreach my $f ( qw(carp croak confess cluck) ) {
no warnings 'redefine';
eval "sub $f {
local \$Carp::CarpLevel = \$Carp::CarpLevel + 1;
Carp::$f(warn_str(\@_));
Expand Down

0 comments on commit f01a540

Please sign in to comment.