Hi,
 
I'm running Mason v1.32 with Apache 2.0.53 and mod_perl 2.0x, under Win32.
 
I would like to find a easy way to catch all the die message from my Mason components.
 
I'm thinking about a code like that, in my handler surbroutine.
 
my $result ;
{
    eval { $result = $ah->handle_request( $r ); } ;
    if ( $@ ) {
        my $msg = decode_entities( $@ ) ;
        $r->internal_redirect( "/error.html?message=" .  $msg )
    }
    return $result ;
}
 
Unfortunately, this doesn't seem to be working, and everytime I'm dying within a component, the died message just appear roughly on the screen, as if I hadn't put the eval surrounding block...
 
Why that?
 
Thanks,
 
Lionel.

Reply via email to