From f203b36ece69988bc3083bb08357f5f11d1423c2 Mon Sep 17 00:00:00 2001 From: Sergio Mendolia Date: Wed, 6 Sep 2023 12:30:49 +0200 Subject: [PATCH] fails on exception --- src/Command/BooksScanCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Command/BooksScanCommand.php b/src/Command/BooksScanCommand.php index 9c662adf..320e853e 100644 --- a/src/Command/BooksScanCommand.php +++ b/src/Command/BooksScanCommand.php @@ -78,8 +78,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int $this->entityManager->flush(); } } catch (\Exception $e) { + $io->error('died during process of '.$file->getRealPath()); $io->error($e->getMessage()); - continue; + throw $e; } } $io->writeln('');