X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FView%2FBase.pm;fp=lib%2FMaypole%2FView%2FBase.pm;h=afba7a09486ee6a87ade8953ef2b5360fccd2606;hb=284a7d7e5af74cc6979378cb428c20ef98b4068c;hp=9615950d0bf141babecac61003218050f6e9bed7;hpb=421bc934b04227b92c05efc6a60939150b6fc751;p=maypole.git diff --git a/lib/Maypole/View/Base.pm b/lib/Maypole/View/Base.pm index 9615950..afba7a0 100644 --- a/lib/Maypole/View/Base.pm +++ b/lib/Maypole/View/Base.pm @@ -90,23 +90,31 @@ sub error { # a static page return -1 unless @{ $r->{objects} || [] }; + my $template_error = $r->{error}; $r->{error} = < Template not found +

Template not found

-This template was not found while processing the following request: +A template was not found while processing the following request: -@{[$r->{action}]} on table @{[ $r->{table} ]} with objects: +@{[$r->{action}]} on table +@{[ $r->{table} ]} with objects: -
+
 @{[join "\n", @{$r->{objects}}]}
-
+
-Looking for template @{[$r->{template}]} in paths: -
+The main template is @{[$r->{template}]}.
+The template subsystem's error message was
+
+$template_error
+
+We looked in paths: + +
 @{[ join "\n", $self->paths($r) ]}
-
+
EOF $r->{content_type} = "text/html"; $r->{output} = $r->{error};