diff --git a/src/Command/Router/RebuildCommand.php b/src/Command/Router/RebuildCommand.php index 8fd4a197c..d1fda0f0d 100644 --- a/src/Command/Router/RebuildCommand.php +++ b/src/Command/Router/RebuildCommand.php @@ -45,7 +45,12 @@ protected function execute(InputInterface $input, OutputInterface $output) $this->trans('commands.router.rebuild.messages.rebuilding') ); - $this->routerBuilder->rebuild(); + if(!$this->routerBuilder->rebuild()) { + $this->getIo()->error( + $this->trans('commands.router.rebuild.messages.error-rebuild') + ); + return 1; + } $this->getIo()->success( $this->trans('commands.router.rebuild.messages.completed')