Skip to content

Commit bb21a73

Browse files
committed
Fix imported count when exceptions occur
When an exception occurs we need to record any messages and then continue the loop, otherwise the imported count gets incremented erroneously.
1 parent 77aec06 commit bb21a73

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Workflow/StepAggregator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ public function process()
163163
$errors++;
164164
$exceptions->attach($e, $index);
165165
$this->logger->error($e->getMessage());
166+
167+
if ($report->hasMessages()) {
168+
$reports->attach($report,$index);
169+
}
170+
continue;
166171
}
167172

168173
$imported++;

0 commit comments

Comments
 (0)