[Catalyst-commits] r8392 -
CatalystX-CRUD/CatalystX-CRUD/trunk/lib/CatalystX/CRUD
karpet at dev.catalyst.perl.org
karpet at dev.catalyst.perl.org
Wed Sep 10 15:03:15 BST 2008
Author: karpet
Date: 2008-09-10 15:03:15 +0100 (Wed, 10 Sep 2008)
New Revision: 8392
Modified:
CatalystX-CRUD/CatalystX-CRUD/trunk/lib/CatalystX/CRUD/Model.pm
Log:
use throw_error consistently
Modified: CatalystX-CRUD/CatalystX-CRUD/trunk/lib/CatalystX/CRUD/Model.pm
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD/trunk/lib/CatalystX/CRUD/Model.pm 2008-09-10 13:20:13 UTC (rev 8391)
+++ CatalystX-CRUD/CatalystX-CRUD/trunk/lib/CatalystX/CRUD/Model.pm 2008-09-10 14:03:15 UTC (rev 8392)
@@ -6,7 +6,6 @@
Catalyst::Component::ACCEPT_CONTEXT
Catalyst::Model
);
-use Carp;
use Class::C3;
our $VERSION = '0.30';
@@ -108,7 +107,7 @@
my ( $self, $c, $arg ) = @_;
if ( !$self->object_class ) {
- croak "must configure an object_class";
+ $self->throw_error("must configure an object_class");
}
my $object_class = $self->object_class;
More information about the Catalyst-commits
mailing list