From: Alexander Hartmaier Date: Sat, 23 Oct 2010 14:35:07 +0000 (+0200) Subject: croak instead of carp if fixed_fields isn't an arrayref X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=387b70d1f646ae86c8206aa180d3e7b38301e905;p=chaz%2Fp5-DBIx-Class-ResultSet-RecursiveUpdate croak instead of carp if fixed_fields isn't an arrayref --- diff --git a/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm b/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm index 59dbc47..6626c1c 100644 --- a/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm +++ b/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm @@ -50,7 +50,7 @@ sub recursive_update { my $source = $self->result_source; # warn 'entering: ' . $source->from(); - carp 'fixed fields needs to be an array ref' + croak 'fixed fields needs to be an arrayref' if defined $fixed_fields && ref $fixed_fields ne 'ARRAY'; if ( blessed($updates) && $updates->isa('DBIx::Class::Row') ) {