diff --git a/bundle/Command/ScheduledVisibilityUpdateCommand.php b/bundle/Command/ScheduledVisibilityUpdateCommand.php index d6dd702..35d5074 100644 --- a/bundle/Command/ScheduledVisibilityUpdateCommand.php +++ b/bundle/Command/ScheduledVisibilityUpdateCommand.php @@ -24,6 +24,7 @@ use Symfony\Component\Console\Question\ConfirmationQuestion; use Symfony\Component\Console\Style\SymfonyStyle; +use Throwable; use function count; use function sprintf; @@ -153,12 +154,12 @@ private function processResults(array $results, ProgressBar $progressBar): void [$language->getLanguageCode()], ), ); - } catch (NotFoundException $exception) { + } catch (Throwable $throwable) { $this->logger->error( sprintf( - 'Content with id #%d does not exist: %s', + 'An error occurred when loading Content #%d: %s', $contentId, - $exception->getMessage(), + $throwable->getMessage(), ), );