Re: Custom 500 error pages under MP2? - SOLVED
[prev]
[thread]
[next]
[Date index for 2005/03/18]
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}.
Barry