Skip to content

diag: fix set -e trap that was swallowing cargo tree error output - #172

Merged
bash0816 merged 1 commit into
mainfrom
diag/codex-0149-lockfile-error-visibility-v2
Aug 23, 2026
Merged

diag: fix set -e trap that was swallowing cargo tree error output#172
bash0816 merged 1 commit into
mainfrom
diag/codex-0149-lockfile-error-visibility-v2

Conversation

@bash0816

Copy link
Copy Markdown
Owner

Follow-up to #171. Under set -eu, 'VAR=$(failing_command)' itself triggers immediate shell exit before STATUS=$? or echo "$OUT" can run (confirmed in run 32615730213, which exited with code 101 with zero visible cargo tree output). Wrapping the assignment in set +e / set -e lets us capture the exit code and print the real error before deciding whether to fail.

@bash0816
bash0816 merged commit 914d43b into main Aug 23, 2026
2 checks passed
@bash0816
bash0816 deleted the diag/codex-0149-lockfile-error-visibility-v2 branch August 23, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant