Bug 41036: Log errors in Koha::ImportBatch->new_from_file
To test:
1. prove t/db_dependent/Koha/ImportBatch.t
2. Observe success
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit f54cce344c)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
parent
caac4811f4
commit
30371eff7d
|
|
@ -102,6 +102,13 @@ sub new_from_file {
|
|||
);
|
||||
}
|
||||
|
||||
if ($errors) {
|
||||
Koha::Logger->get->warn( 'The following error(s) occurred during '
|
||||
. ( defined $format ? ( $format . " " ) : "" )
|
||||
. "record import:\nERROR: "
|
||||
. join( "\nERROR: ", @$errors ) );
|
||||
}
|
||||
|
||||
$job->size( scalar @$marcrecords )->store if $job;
|
||||
|
||||
( $batch_id, $num_valid, $num_items, @import_errors ) = BatchStageMarcRecords(
|
||||
|
|
|
|||
Loading…
Reference in New Issue