From 45d2546842b9cb76ae5c4b6d165a8442f36faf86 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 23 Jun 2021 09:40:36 +0200 Subject: [PATCH] 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. --- Koha/Patrons/Import.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Patrons/Import.pm b/Koha/Patrons/Import.pm index e6c59eab487..9347d037816 100644 --- a/Koha/Patrons/Import.pm +++ b/Koha/Patrons/Import.pm @@ -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( -- 2.20.1