}
package DBIx::Class::ResultSet::RecursiveUpdate::Functions;
-use Carp;
+use Carp::Clan;
use Scalar::Util qw( blessed );
use List::MoreUtils qw/ any /;
# don't throw a warning instead of an exception to give users
# time to adapt to the new API
- warn(
+ carp(
"No such column, relationship, many-to-many helper accessor or generic accessor '$name'"
) unless $unknown_params_ok;
# qr/No such column, relationship, many-to-many helper accessor or generic accessor 'nonexisting'/,
# 'nonexisting column, accessor, relationship fails'
# );
- warning_is {
+ warning_like {
my $user = $user_rs->recursive_update($updates);
}
- "No such column, relationship, many-to-many helper accessor or generic accessor 'nonexisting'",
+ qr/No such column, relationship, many-to-many helper accessor or generic accessor 'nonexisting'/,
'nonexisting column, accessor, relationship warns';
$expected_user_count++;
is( $user_rs->count, $expected_user_count, 'User created' );