Bug 28616: (bug 28220 follow-up) Replace Data::Printer with simple warn

$_ is an exception that will be stringify in scalar context. We don't
need Data::Printer here.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2021-06-23 09:40:36 +02:00
parent c2fb056d7d
commit 2678d6a4bc
1 changed files with 2 additions and 2 deletions

View File

@ -349,7 +349,7 @@ sub import_patrons {
} elsif ( $_->isa('Koha::Exceptions::Patron::Attribute::NonRepeatable') ) {
push @errors, { patron_attribute_non_repeatable => 1, borrowernumber => $borrowernumber, attribute => $_->attribute };
} else {
use Data::Printer colored => 1; warn p $_;
warn $_;
push @errors, { unknown_error => 1 };
}
@ -417,7 +417,7 @@ sub import_patrons {
push @errors, { patron_attribute_non_repeatable => 1, patron_id => $patron_id, attribute => $_->attribute };
} else {
use Data::Printer colored => 1; warn p $_;
warn $_;
push @errors, { unknown_error => 1 };
}
push(