On Sat, December 6, 2003 19:22 Mark J. Reed wrote:
> On Sat, Dec 06, 2003 at 11:02:06PM +0900, Jesper Olsen wrote:
>> That's the problem with ruby cgi scripts - they give you no feedback
>> when
>> they fail.
>
> Sure they do - just not to the browser.  It goes to the web server's
> error log.    If you want errors to go to the browser, you can just
> wrap the whole thing in a big begin/rescue block:
>
> 	begin
> 	    ... entire CGI goes here
> 	rescue
> 	    puts "Content-Type: text/plain"
> 	    puts
> 	    puts "Error #{$!}: #{$!.backtrace}"
> 	end
>
> cgi.rb or mod_ruby may very well have something to do this for you;
> I don't know them well.
>
> -Mark
>
>
Thanks - I will try that.
Jesper

--
http://JesperOlsen.Net