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('');