X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FView%2FTT.pm;h=78aad9325199f07101d71afbffa116540d2f9cac;hb=3cf2fea8686cea17e128789566a0cd55f2046833;hp=a1484d5eab77a2b030f230c0e322cb1a2ef8508a;hpb=c21945575be63a9cf0b84d74b7b223ca2b02f8a5;p=maypole.git diff --git a/lib/Maypole/View/TT.pm b/lib/Maypole/View/TT.pm index a1484d5..78aad93 100644 --- a/lib/Maypole/View/TT.pm +++ b/lib/Maypole/View/TT.pm @@ -49,6 +49,9 @@ sub template { sub report_error { my ($self, $r, $error, $type) = @_; my $output; + + warn "self : $self, r : $r, error : $error, type : $type\n"; + # Need to be very careful here. my $tt = Template->new; unless (ref $r->{config}) { @@ -60,7 +63,8 @@ sub report_error { { err_type => $type, error => $error, config => $r->{config}, request => $r, - eval{$self->vars($r)} }, \$output )) { + paths => $self->paths($r), + eval{$self->vars($r)} }, \$output )) { $r->{output} = $output; if ($tt->error) { $r->{output} = "Even the error template errored - ".$tt->error.""; } @@ -399,23 +403,27 @@ the path "[% request.path %]". The error text returned was:

Request details

- +
[% FOR attribute = ["model_class", "table", "template", "path", "content_type", "document_encoding", "action", "args", "objects"] %] - [% END %]
[% attribute %] [% +
[% attribute %] [% request.$attribute.list.join(" , ") %]
+

Website / Template Paths

+ + + +
Base URI [% request.config.uri_base %]
Paths [% paths %]
+

Application configuration

- - [% FOR field IN config %] - - [% END %] +
[% field.key %] [% - $field.value.list.join(" , ") %]
+ + + +
Model [% request.config.model %]
View [% request.config.view %]
Classes [% request.config.classes.list.join(" , ") %]
Tables [% request.config.display_tables.list.join(" , ") %]
- -