From 2678d6a4bc480e166d5b1c9e9bc1f1f45ddf6197 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. Signed-off-by: Jonathan Druart --- 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 e6c59eab48..9347d03781 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.39.5