X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=423cf4129780aa9adc07602683d3bd58735081f2;hb=33117422d27c359a700390643e72f5382a19524e;hp=93565622b5f377e55b171c8c035c3f2609dfc2ec;hpb=b5ecfcf07b8ffe7e9984f0279c8781ce51c6ac6a;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 9356562..423cf41 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -102,8 +102,9 @@ sub finalize_error { . '

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

$name

"; + $name = "

$name

"; # Don't show context in the dump delete $c->req->{_context}; @@ -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 = ''; @@ -219,7 +218,6 @@ EOF display: block; margin: 1em 0; overflow: auto; - white-space: pre; } div.name h1, div.error p { margin: 0; @@ -246,6 +244,12 @@ EOF + + # Trick IE + $c->res->{body} .= ( ' ' x 512 ); + + # Return 500 + $c->res->status(500); } =head2 $self->finalize_headers($c)