Changeset 11095
- Timestamp:
- 05/04/08 19:51:18 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HTTP-Engine/branches/moose/lib/HTTP/Engine/Plugin/DebugScreen.pm
r11063 r11095 6 6 around call_handler => sub { 7 7 my ($next, @args) = @_; 8 local $SIG{__DIE__} = \& Carp::confess;8 local $SIG{__DIE__} = \&_die; 9 9 $next->(@args); 10 10 }; … … 20 20 }; 21 21 22 # copied from Carp::Always. thanks ferreira++ 23 sub _die { 24 if ( $_[-1] =~ /\n$/s ) { 25 my $arg = pop @_; 26 $arg =~ s/ at .*? line .*?\n$//s; 27 push @_, $arg; 28 } 29 die &Carp::longmess; 30 } 31 22 32 1;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)