Re: error_log and get/post vars

[email protected] Wed, 1 Dec 2004 12:11:00 -0800
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
On Wed, Dec 01, 2004 at 08:06:30PM +0100, dodo <[email protected]> wrote:
> 
> Hi,
> First of all, I'd like to compliment u guys on the software.
> Its a great and required step towards enpowering ruby.
> 
> I have 2 questions.
> Is there any way to redirect error output to the http output?
> (like PHP does).

You can do something like this:

r = Apache.request
puts r.prev.error_message

Put that into a script that is executed when your server returns
a 500 error.