[jifty-devel] Re: [Jifty-commit] r2084 - jifty/trunk/lib/Jifty/Action

Jesse Vincent jesse at bestpractical.com
Mon Oct 30 09:53:07 EST 2006


I 100% appreciate the improved error message, but how did you run into
the error condition?

-j

On Mon, Oct 30, 2006 at 03:08:11AM -0500, jifty-commit at lists.jifty.org wrote:
> Author: gaal
> Date: Mon Oct 30 03:08:10 2006
> New Revision: 2084
> 
> Modified:
>    jifty/trunk/lib/Jifty/Action/Record.pm
> 
> Log:
> improve an error message
> 
> Modified: jifty/trunk/lib/Jifty/Action/Record.pm
> ==============================================================================
> --- jifty/trunk/lib/Jifty/Action/Record.pm	(original)
> +++ jifty/trunk/lib/Jifty/Action/Record.pm	Mon Oct 30 03:08:10 2006
> @@ -42,7 +42,11 @@
>  
>  sub record_class {
>      my $self = shift;
> -    $self->log->fatal("Jifty::Action::Record must be subclassed to be used");
> +    my $class = ref $self;
> +    my $hint = $class eq __PACKAGE__ ? "" :
> +        " (did you forget to override record_class in $class?)";
> +    $self->log->fatal("Jifty::Action::Record must be subclassed to be used" .
> +        $hint);
>  }
>  
>  =head2 new PARAMHASH
> _______________________________________________
> Jifty-commit mailing list
> Jifty-commit at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-commit
> 

-- 


More information about the jifty-devel mailing list