mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +01:00
Exit with an error code if the workflow returned one.
Summary: PHP thinks this thing is an integer... and also thinks it's not an integer... I'm so confused... Anyway, this seems to persuade it to use the correct overload. Test Plan: Ran arc patch with the incant provided in the bug report. It successfully returned 1, where it didn't before. I didn't test the perflab stuff; hopefully that aborts when it detects nonzero return. Reviewers: nh Reviewed By: nh CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D2743
This commit is contained in:
parent
5089cd7de1
commit
3f4f8992fb
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ try {
|
||||||
$workflow->willRunWorkflow();
|
$workflow->willRunWorkflow();
|
||||||
$err = $workflow->run();
|
$err = $workflow->run();
|
||||||
$config->didRunWorkflow($command, $workflow, $err);
|
$config->didRunWorkflow($command, $workflow, $err);
|
||||||
exit($err);
|
exit((int)$err);
|
||||||
|
|
||||||
} catch (ArcanistUsageException $ex) {
|
} catch (ArcanistUsageException $ex) {
|
||||||
echo phutil_console_format(
|
echo phutil_console_format(
|
||||||
|
|
Loading…
Reference in a new issue