View previous topic :: View next topic |
Author |
Message |
asdfasdf -
Joined: 29 Jan 2004 Posts: 5
|
Posted: Mon Apr 12, 2004 10:00 pm Post subject: More Specific Error Pages |
|
|
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 |
|
 |
nquin321 -
Joined: 29 Jan 2004 Posts: 296 Location: Right Behind You
|
Posted: Mon Apr 12, 2004 10:11 pm Post subject: |
|
|
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 |
|
 |
asdfasdf -
Joined: 29 Jan 2004 Posts: 5
|
Posted: Sat Apr 17, 2004 3:52 am Post subject: Your my hero! |
|
|
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 |
|
 |
|