throw error message from console
This commit is contained in:
parent
e1b2c74b44
commit
d1246cd5b1
@ -16,6 +16,6 @@ class Console
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return $process->getExitCodeText();
|
||||
}
|
||||
}
|
||||
|
@ -134,8 +134,10 @@ class Updater
|
||||
|
||||
$command = "php artisan update:finish {$alias} {$company_id} {$new} {$old}";
|
||||
|
||||
if (!Console::run($command)) {
|
||||
throw new \Exception(trans('modules.errors.finish', ['module' => $alias]));
|
||||
if (true !== $result = Console::run($command)) {
|
||||
$message = !empty($result) ? $result : trans('modules.errors.finish', ['module' => $alias]);
|
||||
|
||||
throw new \Exception($message);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user