Changeset 24314 for lang/perl/NanoA

Show
Ignore:
Timestamp:
11/19/08 20:28:51 (5 years ago)
Author:
kazuho
Message:

there seems no good way to go, revert to 24298

Location:
lang/perl/NanoA/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/NanoA/trunk/lib/NanoA/DebugScreen.pm

    r24300 r24314  
    2525    } 0..$#trace; 
    2626     
    27     +{ message => $msg, trace => \@trace }; 
     27    output({ message => $msg, trace => \@trace }); 
     28    exit 0; 
    2829} 
    2930 
  • lang/perl/NanoA/trunk/nanoa.pl

    r24300 r24314  
    1212do { 
    1313    local $@; 
    14     my $err_info; 
    1514    local $SIG{__DIE__} = sub { 
    16         die @_ 
     15        die $_[0] 
     16            if caller() eq 'Encode'; 
     17        die $_[0] 
    1718            if ref $_[0] eq 'HASH' && $_[0]->{finished}; 
    18         $err_info = NanoA::DebugScreen::build(@_); 
     19        NanoA::DebugScreen::build(@_); 
    1920    }; 
    2021    eval { 
    2122        NanoA::Dispatch->dispatch(); 
    2223    }; 
    23     if ($@ && $err_info) { 
    24         NanoA::DebugScreen::output($err_info); 
     24    if ($@ && ref $@ eq 'HASH' && $@->{finished}) { 
     25        # just ignore 
    2526    } 
    2627};