- Timestamp:
- 12/09/08 13:57:55 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/CGI-ExceptionManager/trunk/lib/CGI/ExceptionManager.pm
r24781 r26178 5 5 our $VERSION = '0.03'; 6 6 7 sub detach { die bless [ ], 'CGI::ExceptionManager::Exception' }7 sub detach { die bless [@_], 'CGI::ExceptionManager::Exception' } 8 8 9 9 my $stacktrace_required; … … 12 12 my ($class, %args) = @_; 13 13 14 my $response; 14 15 my $err_info; 15 16 local $SIG{__DIE__} = sub { 16 17 my ($msg) = @_; 17 18 if (ref $msg eq 'CGI::ExceptionManager::Exception') { 19 $response = $msg->[0]; 18 20 undef $err_info; 19 21 } else { … … 28 30 local $@; 29 31 eval { 30 $ args{callback}->();32 $response = $args{callback}->(); 31 33 undef $err_info; 32 34 }; … … 37 39 ); 38 40 } 41 return $response; 39 42 } 40 43
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)