[Maypole] Maypole::Manual::Request typo?

From: Toby Corkindale (maypole at wintrmute.net)
Date: Wed Jan 26 2005 - 11:44:31 GMT


On Tue, Jan 25, 2005 at 08:25:04AM -0800, Peter Speltz wrote:
> Have you read teh Maypole::Manual::Request error handling section? I follow
> that model, then when i come to an error just do a "return $r->error("Error.
> we're dead")" .

perldoc Maypole::Manual::Request:
[...]
       Put this in your driver class:

           sub error {
               my ($r, $message) = @_;
               $r->{template} = "error";
               $r->{template_args}{error} = $message;
               return OK;
           }
[...]

Shouldn't that be "return Maypole::Constants::OK;" ?

tjc.

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT