Changeset 24463

Show
Ignore:
Timestamp:
11/20/08 17:31:22 (7 weeks ago)
Author:
tokuhirom
Message:

upgrade to CGI::ExceptionManager? 0.02

Location:
lang/perl/MENTA/trunk/extlib/CGI
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/MENTA/trunk/extlib/CGI/ExceptionManager.pm

    r24391 r24463  
    33use warnings; 
    44use 5.00800; 
    5 our $VERSION = '0.01'; 
    6 use CGI::ExceptionManager::StackTrace; 
     5our $VERSION = '0.02'; 
    76 
    87sub detach { die bless [], 'CGI::ExceptionManager::Exception' } 
     8 
     9my $stacktrace_required; 
    910 
    1011sub run { 
     
    1718            undef $err_info; 
    1819        } else { 
     20            unless ($stacktrace_required) { 
     21                require CGI::ExceptionManager::StackTrace; 
     22                $stacktrace_required = 1; 
     23            } 
    1924            $err_info = CGI::ExceptionManager::StackTrace->new($msg); 
    2025        } 
  • lang/perl/MENTA/trunk/extlib/CGI/ExceptionManager/StackTrace.pm

    r24391 r24463  
    3030        } 
    3131    } 
    32     if ($message =~ / at ([^ ]+) line (\d+)\./ 
     32    if ($message =~ / at ([^ ]+) line (\d+)/ 
    3333            && ($1 ne $trace[0]->{file} || $2 != $trace[0]->{line})) { 
    3434        unshift @trace, {