From: Perl 5 Porters Date: Mon, 1 Jan 1996 23:10:37 +0000 (+0000) Subject: A patch from Tim Bunce (?) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6f48387a45abfd82047243df8cef453f08b23648;p=p5sagit%2Fp5-mst-13.2.git A patch from Tim Bunce (?) --- diff --git a/lib/diagnostics.pm b/lib/diagnostics.pm index 6016d96..f40c51e 100755 --- a/lib/diagnostics.pm +++ b/lib/diagnostics.pm @@ -415,7 +415,8 @@ sub death_trap { if (caller eq $WHOAMI) { print STDERR "INTERNAL EXCEPTION: $exception"; } &$olddie if defined $olddie and $olddie and $olddie ne \&death_trap; $SIG{__DIE__} = $SIG{__WARN__} = ''; - confess "Uncaught exception from user code:\n\t$exception Bailing out"; + local($Carp::CarpLevel) = 1; + confess "Uncaught exception from user code:\n\t$exception"; # up we go; where we stop, nobody knows, but i think we die now # but i'm deeply afraid of the &$olddie guy reraising and us getting # into an indirect recursion loop