Changeset 24300

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

add compile error example

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

Legend:

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

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

    r24298 r24300  
    1212do { 
    1313    local $@; 
     14    my $err_info; 
    1415    local $SIG{__DIE__} = sub { 
    15         die $_[0] 
    16             if caller() eq 'Encode'; 
    17         die $_[0] 
     16        die @_ 
    1817            if ref $_[0] eq 'HASH' && $_[0]->{finished}; 
    19         NanoA::DebugScreen::build(@_); 
     18        $err_info = NanoA::DebugScreen::build(@_); 
    2019    }; 
    2120    eval { 
    2221        NanoA::Dispatch->dispatch(); 
    2322    }; 
    24     if ($@ && ref $@ eq 'HASH' && $@->{finished}) { 
    25         # just ignore 
     23    if ($@ && $err_info) { 
     24        NanoA::DebugScreen::output($err_info); 
    2625    } 
    2726};