more robust testing platform, #37340
[freeside.git] / httemplate / elements / errorpage.html
index d28055e..7d66e7c 100644 (file)
@@ -1,13 +1,11 @@
-<% include("/elements/header.html", "Error processing your request") %>
-
-Your request could not be processed because of the following error<% (scalar(@_) > 1) ? 's' : '' %>:
+% my $error = shift;
+% $m->notes('error', $error);
+<& /elements/header.html, mt("Error") &>
 
 % while (@_) {
 
-<P><FONT SIZE="+1" COLOR="#ff0000"><B><% shift %></B></FONT>
-
+<P><FONT SIZE="+1" COLOR="#ff0000"><% $error |h %></FONT>
 
 %}
 % $m->flush_buffer();
 % $HTML::Mason::Commands::m->abort();
-% #die "shouldn't fall through to here (mason \$m->abort didn't)";