diff options
author | Bryan Drewery <bryan@shatow.net> | 2022-03-10 03:31:03 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2022-03-10 03:31:34 +0300 |
commit | 2028beb06c8dc65005035eb8132f68bb5d59aa28 (patch) | |
tree | 1741dc112aa3a479422d9c54fcd44922cf3514dd /src | |
parent | 03b2e06697a5919d841c741f401620e21a4c3bbd (diff) |
exit_handler: Show >0 exit status always
Issue #985
Diffstat (limited to 'src')
-rwxr-xr-x | src/share/poudriere/common.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/share/poudriere/common.sh b/src/share/poudriere/common.sh index a76c3496..fe834720 100755 --- a/src/share/poudriere/common.sh +++ b/src/share/poudriere/common.sh @@ -1324,7 +1324,7 @@ exit_handler() { fi fi if [ "${exit_status}" -ne 0 ] && [ "${CRASHED:-0}" -eq 0 ]; then - echo "[ERROR] Unhandled error! Exiting ${exit_status}" >&2 + echo "[ERROR] Unhandled error!" >&2 fi if was_a_jail_run; then # Don't use jail for any caching in cleanup @@ -1364,6 +1364,9 @@ exit_handler() { if [ -n "${POUDRIERE_TMPDIR-}" ]; then rm -rf "${POUDRIERE_TMPDIR}" >/dev/null 2>&1 || : fi + if [ "${exit_status}" -ne 0 ]; then + echo "Exiting with status ${exit_status}" >&2 || : + fi } build_url() { |