X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=4781e45300875b7021fac6a25f84a2f144111a61;hb=6329bfe593d5ea3891011333f7d7984b4e5e7910;hp=48126e7b6d27b86cb1e1de73b07b7fd59cb81e5b;hpb=d42e2887f057321d1e65aaffb7ee822d9c1525f3;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 48126e7..4781e45 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -181,7 +181,6 @@ sub finalize_error { $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 @@ -535,7 +534,7 @@ sub prepare_read { =head2 $self->prepare_request(@arguments) -Sets up the PSGI environment in the Engine. +Populate the context object from the request object. =cut @@ -682,6 +681,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); }; };