sub push_error
{
my ( $self, $c, $params ) = @_;
+ die 'Catalyst app object missing'
+ unless defined $c;
my $error = 'unknown error';
if (exists $params->{message}) {
$error = $params->{message};
sub get_errors
{
my ( $self, $c ) = @_;
+ die 'Catalyst app object missing'
+ unless defined $c;
return $c->stash->{_dbic_crud_errors};
}