More Specific Error Pages

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
asdfasdf
-


Joined: 29 Jan 2004
Posts: 5

PostPosted: Mon Apr 12, 2004 10:00 pm    Post subject: More Specific Error Pages Reply with quote

Is there any varaible or way that i can get my error pages to display the error that normaly get put in the log/cgi.log file?

for example say i had an error in a script, the resuting page might look like

Internal Server Error 500:
there was an error in you script bob.pl at line 398 near "some code"
execution of bob.pl failed

is this possible or do i even make since?
Back to top View user's profile Send private message
nquin321
-


Joined: 29 Jan 2004
Posts: 296
Location: Right Behind You

PostPosted: Mon Apr 12, 2004 10:11 pm    Post subject: Reply with quote

You can instruct the server to display any errors messages to the web browser by adding the following line near the top of the Perl script:

#!Perl
use CGI::Carp qw(fatalsToBrowser);
_________________
How many forum members does it takes to change a light bulb?
Back to top View user's profile Send private message
asdfasdf
-


Joined: 29 Jan 2004
Posts: 5

PostPosted: Sat Apr 17, 2004 3:52 am    Post subject: Your my hero! Reply with quote

Alright! thats awesome your my new best friend!!!!!!!!! :D :D :D :D :D :lol: :lol: :lol: :wink: :wink: :wink: :wink: :idea: :idea: :!: :!: :arrow: :arrow: :P :P :P :D :D :D :D :) :) :)
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group