[Jifty-commit] r2084 - jifty/trunk/lib/Jifty/Action
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Oct 30 03:08:11 EST 2006
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
More information about the Jifty-commit
mailing list