X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=7cd76d58af77ee1a064dfe3459aa04ca097f46e2;hp=28ec0ebcf1aaabd9f229840b89308dd15fce3114;hb=5e25c01fccd73dd1868c8be4df35be45d65e480f;hpb=676bed72afa0c79b9f26e1d548a49dbfb6ea15c7 diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 28ec0eb..7cd76d5 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -2023,6 +2023,13 @@ sub prepare { $c->response->status(400); $c->response->content_type('text/plain'); $c->response->body('Bad Request'); + # Note we call finalize and then die here, which escapes + # finalize being called in the enclosing block.. + # It in fact couldn't be called, as we don't return $c.. + # This is a mess - but I'm unsure you can fix this without + # breaking compat for people doing crazy things (we should set + # the 400 and just return the ctx here IMO, letting finalize get called + # above... $c->finalize; die $_; };