X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=44176bc2d941128224c09e07157ac7a464310aea;hp=06652657b05a7a0134581555cb247ce0379da0ad;hb=2666dd3ba45edb0fa31508f67d94fe80072f94f6;hpb=f075593c0807f4bb3a736472f86fc5d58c1c4e3d diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 0665265..44176bc 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -102,8 +102,9 @@ sub finalize_error { . '

' } @{ $c->error }; $error ||= 'No output'; + $error = qq{
$error
}; $title = $name = "$name on Catalyst $Catalyst::VERSION"; - $name = "

$name

"; + $name = "

$name

"; # Don't show context in the dump delete $c->req->{_context}; @@ -127,7 +128,7 @@ sub finalize_error { push @infos, sprintf <<"EOF", $name, $value;

%s

-
%s
+
%s
EOF $i++; @@ -141,12 +142,10 @@ EOF
 (en) Please come back later
 (de) Bitte versuchen sie es spaeter nocheinmal
-(nl) Gelieve te komen later terug
+(at) Konnten's bitt'schoen spaeter nochmal reinschauen
 (no) Vennligst prov igjen senere
-(fr) Veuillez revenir plus tard
-(es) Vuelto por favor mas adelante
-(pt) Voltado por favor mais tarde
-(it) Ritornato prego più successivamente
+(dk) Venligst prov igen senere
+(pl) Prosze sprobowac pozniej
 
$name = ''; @@ -234,6 +233,15 @@ EOF font-size: medium; font-weight: normal; } + /* from http://users.tkk.fi/~tkarvine/linux/doc/pre-wrap/pre-wrap-css3-mozilla-opera-ie.html */ + /* Browser specific (not valid) styles to make preformatted text wrap */ + pre { + white-space: pre-wrap; /* css-3 */ + white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + word-wrap: break-word; /* Internet Explorer 5.5+ */ + } @@ -245,6 +253,12 @@ EOF + + # Trick IE + $c->res->{body} .= ( ' ' x 512 ); + + # Return 500 + $c->res->status(500); } =head2 $self->finalize_headers($c)