Skip to content
Permalink
Browse files

[router:rebuild] Handle unsuccessful rebuild (#4050)

  • Loading branch information...
harold20 authored and enzolutions committed May 21, 2019
1 parent e64ab9b commit 7ea06da7be1656eecd58acb9ee22cd355670b951
Showing with 6 additions and 1 deletion.
  1. +6 −1 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')

0 comments on commit 7ea06da

Please sign in to comment.
You can’t perform that action at this time.