catch process exceptions

This commit is contained in:
Denis Duliçi
2020-08-12 02:33:40 +03:00
parent 2d4d429758
commit d415cd6ae8
2 changed files with 28 additions and 9 deletions

View File

@ -61,7 +61,7 @@ class UpdateAll extends Command
$command = "update {$alias} {$company_id}";
if (true !== $result = Console::run($command, true)) {
if (true !== $result = Console::run($command)) {
$message = !empty($result) ? $result : trans('modules.errors.finish', ['module' => $alias]);
$this->error($message);