HomePhabricator

When "ArcanistRuntime" exits with a nonzero exit code, emit that exit code

Authored by epriestley on Feb 27 2020, 2:14 PM.

Description

When "ArcanistRuntime" exits with a nonzero exit code, emit that exit code

Summary:
See https://discourse.phabricator-community.org/t/failed-arc-patch-does-not-return-non-zero-exit-code/3584.

Returning an integer from a top-level PHP file doesn't actually affect the process exit code, as much as I might wish it does.

Test Plan: Ran arc patch adflsnadfsln; echo $?, saw a nonzero exit code after this fix.

Differential Revision: https://secure.phabricator.com/D21037

Details

Committed
epriestleyFeb 27 2020, 2:17 PM
Pushed
epriestleyFeb 27 2020, 2:17 PM
Differential Revision
D21037: When "ArcanistRuntime" exits with a nonzero exit code, emit that exit code
Parents
rARC1b97f8b4086d: Update "arc upload" for Toolsets
Branches
Unknown
Tags
Unknown
Build Status
Buildable 23929
Build 32932: Run Core Tests