sub error {
my ( $self, $r, $desc ) = @_;
$desc = $desc ? "$desc: " : "";
- carp $desc . $r->{error};
if ( $r->{error} =~ /not found$/ ) {
-
+ warn "template not found error : ", $r->{error};
# This is a rough test to see whether or not we're a template or
# a static page
return -1 unless @{ $r->{objects} || [] };
my $template_error = $r->{error};
$r->{error} = <<EOF;
-
<h1> Template not found </h1>
A template was not found while processing the following request:
$r->{output} = $r->{error};
return OK;
}
- $r->{content_type} = "text/plain";
- $r->{output} = $r->{error};
- $r->send_output;
return ERROR;
}