Re: [Maypole] Maypole's error (mis)handling

From: Simon Flack (sf at flacks.net)
Date: Thu Nov 25 2004 - 18:08:40 GMT


Toby Corkindale wrote:
>>>This now gives me the helpful message of:
>>>Warning: something's wrong at
>>>/usr/lib/perl5/site_perl/5.8.4/Maypole/View/Base.pm line 74.
>>>
>>>This line in particular turns out to be:
>>>sub error {
>>> my ( $self, $r ) = @_;
>>> warn $r->{error}; # <-- line 74

Can you change that to:

sub error {
     my ( $self, $r, $error ) = @_;
     warn $r->{error} || $error;

Maypole::View::Base has been broken for a while, it's on the todo to fix.

--simonflk

_______________________________________________
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