Add option to break a chain if error occurs
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / ContextClosure.pm
index c81ffc9..8a5cbc8 100644 (file)
@@ -18,6 +18,7 @@ sub normal_closure : Local {
 sub context_closure : Local {
     my ($self, $ctx) = @_;
     $ctx->stash(closure => $self->make_context_closure(sub {
+        my ($ctx) = @_;
         $ctx->response->body('from context closure');
     }, $ctx));
     $ctx->response->body('stashed context closure');