Barry Hoggard wrote:

On Mar 18, 2005, at 5:25 PM, Stas Bekman wrote:

Barry Hoggard wrote:

On Mar 14, 2005, at 7:38 PM, Barry Hoggard wrote:

What is the best way to do the MyError example from the Eagle book in MP2? If I get an uncaught error, and I have something like this set up:

    ErrorDocument 500 /error
    <Location /error>
        SetHandler perl-script
        PerlResponseHandler MyError
    </Location>


How can I get to the text of the error? It doesn't seem to be in notes('error-notes').

Following up on my own post here. I'm using $r->subprocess_env('REDIRECT_ERROR_NOTES') to get the error message.


You mean $ENV{REDIRECT_ERROR_NOTES} is not available even with perl-script, which should populate %ENV.



Sorry if I wasn't clear. I meant I SOLVED the problem by using $ENV{REDIRECT_ERROR_NOTES}.

But that's exactly what the eagle book suggests, isn't it?


-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com

Reply via email to