rastoboy has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to fail informatively via CGI. The problem I have is, for example, when trying to open a Storeable session file:
So to force failure I go delete the session file. In the logs I get:my $address = retrieve("/tmp/$session_file") or die "no session file $ +!\n";
which is quite informative. But in my web browser I just get a blank screen.can't open /tmp/MYyqafy9gMnlZenwi9KDmd3E4Gj4Yk5nSyVL6: No such file or + directory at ...
How can I force the error to STDOUT and thence to the web browser?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Failing noticeably in CGI
by dsheroh (Monsignor) on Nov 15, 2009 at 10:54 UTC | |
by WizardOfUz (Friar) on Nov 15, 2009 at 11:17 UTC | |
by rastoboy (Monk) on Nov 16, 2009 at 07:02 UTC | |
|
Re: Failing noticeably in CGI
by WizardOfUz (Friar) on Nov 15, 2009 at 08:47 UTC | |
|
Re: Failing noticeably in CGI
by happy.barney (Friar) on Nov 15, 2009 at 08:27 UTC | |
|
Re: Failing noticeably in CGI
by Anonymous Monk on Nov 15, 2009 at 08:54 UTC | |
by rastoboy (Monk) on Nov 15, 2009 at 09:51 UTC |