[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] A bit off topic - CGI:Application and CGI::Carp


Hello,

I am trying to write an error handling routine, so that the errors from my
CGI::Application are displayed in the browser. I have set a runmode of
'error500' which is called by default every time a 500 error occurs (via
ErrorDocument in the .htaccess files). Below is the code for that runmode.

How can I also display the exact error as formatted by CGI::Carp (and not
just "Premature end of script headers"). Is this possible?

Thanks.

sub error500 {
	my $self = shift;
	my $q = $self->query();
	my $config = $self->param('config');


	$thtml = $self->load_tmpl($config->get_base_template_path .
$config->get_error500, die_on_bad_params => 0);
	$thtml->param(header => $self->header());
	return $thtml->output;
}



Roy Rubin
suppressed




---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.