[Catalyst-commits] r14509 - CatalystX-CRUD/CatalystX-CRUD/trunk/lib/CatalystX/CRUD
karpet at dev.catalyst.perl.org
karpet at dev.catalyst.perl.org
Fri Feb 28 22:55:27 GMT 2014
Author: karpet
Date: 2014-02-28 22:55:27 +0000 (Fri, 28 Feb 2014)
New Revision: 14509
Modified:
CatalystX-CRUD/CatalystX-CRUD/trunk/lib/CatalystX/CRUD/Controller.pm
Log:
re-use error when we re-throw
Modified: CatalystX-CRUD/CatalystX-CRUD/trunk/lib/CatalystX/CRUD/Controller.pm
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD/trunk/lib/CatalystX/CRUD/Controller.pm 2014-02-28 22:46:19 UTC (rev 14508)
+++ CatalystX-CRUD/CatalystX-CRUD/trunk/lib/CatalystX/CRUD/Controller.pm 2014-02-28 22:55:27 UTC (rev 14509)
@@ -183,7 +183,7 @@
$c->res->body( 'No such ' . $self->model_name );
# re-throw so we interrupt chain.
- $self->throw_error( 'No such ' . $self->model_name );
+ $self->throw_error($_);
};
}
More information about the Catalyst-commits
mailing list