Skip to content

Commit

Permalink
Item13897: Don't generate extra stack trace on fata exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed May 25, 2017
1 parent 7f153ad commit d85280c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/Foswiki/Class.pm
Expand Up @@ -189,7 +189,8 @@ sub import {
my ($class) = shift;
my $target = caller;

$SIG{__DIE__} = sub { Carp::confess(@_) };
local $SIG{__DIE__} = sub { Carp::confess(@_) }
if $ENV{FOSWIKI_ASSERTS};

# Define options we would provide for classes.
my %options = (
Expand Down

0 comments on commit d85280c

Please sign in to comment.