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

Toby Corkindale maypole@wintrmute.net
Wed, 26 Jan 2005 11:44:31 +0000


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.