Changeset 994


Ignore:
Timestamp:
Mar 25, 2007, 12:48:59 PM (15 years ago)
Author:
Dominic Hargreaves
Message:

More friendly error message on template error (from Earle)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides/Template.pm

    r992 r994  
    206206    $tt->process( $args{template}, $tt_vars, \$output );
    207207
     208    my $contact_email = $config->contact_email;
     209   
    208210    $output ||= qq(<html><head><title>ERROR</title></head><body><p>
    209                    Failed to process template: )
    210               . $tt->error
    211               . qq(</p></body></html>);
     211    Sorry!  Something went wrong.  Please contact the site administrator
     212    at <a href="mailto:$contact_email">$contact_email</a> and quote the
     213    following error message:</p><blockquote>Failed to process template: )
     214        . $tt->error
     215        . qq(</blockquote></body></html>);
    212216
    213217    return $header . $output;
Note: See TracChangeset for help on using the changeset viewer.