X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=daf53d191f507de45bc9cda0e169a8ceea03c8f1;hb=f2b83422bad57b7956d06c7b70098fb986ccf06e;hp=fac70cd89a1a3c6f3a019ab966776301d9821c53;hpb=47b9d68e304e9cb305974bc15aa8e60f4bfb6c45;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index fac70cd..daf53d1 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -180,10 +180,6 @@ sub finalize_error { $title = $name = "$name on Catalyst $Catalyst::VERSION"; $name = "

$name

"; - # Don't show context in the dump - $c->req->_clear_context; - $c->res->_clear_context; - # Don't show body parser in the dump $c->req->_clear_body; @@ -670,8 +666,7 @@ sub run { =head2 build_psgi_app ($app, @args) -Builds and returns a PSGI application closure, wrapping it in the reverse proxy -middleware if the using_frontend_proxy config setting is set. +Builds and returns a PSGI application closure. (Raw, not wrapped in middleware) =cut @@ -683,6 +678,7 @@ sub build_psgi_app { return sub { my ($respond) = @_; + confess("Did not get a response callback for writer, cannot continiue") unless $respond; $app->handle_request(env => $env, response_cb => $respond); }; };