fix minor mistake in custom error screen (Jan Ivar Pladsen)
Marcus Ramberg [Wed, 21 Dec 2005 15:24:51 +0000 (15:24 +0000)]
lib/Catalyst/Manual/Cookbook.pod

index a7bfbd6..0410d79 100644 (file)
@@ -599,7 +599,7 @@ C<end> method; see L<Catalyst::Plugin::FillInForm>).
             $c->stash->{errors}   = $c->error;
             $c->stash->{template} = 'errors.tt';
             $c->forward('MyApp::View::TT');
-            $c->{error} = [];
+            $c->error(0);
         }
     
         return 1 if $c->response->status =~ /^3\d\d$/;