Show Claude Code's output in the log when it fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
git.teal.net setupandClaude Opus 5.5 committed 2026-11-27 18:47:45 +00:00
1 parent a4a978bbcb
commit 5f292261ce
1 file changed
+2 -1
+2 -1
View File
@@ -151,7 +151,8 @@ rc=$?
set -e set -e
if [ $rc -ne 0 ] || [ ! -s "$TMP/claude.md" ]; then if [ $rc -ne 0 ] || [ ! -s "$TMP/claude.md" ]; then
echo "Claude Code exited with $rc. Its error output:"; tail -40 "$TMP/claude.err" || true echo "Claude Code exited with $rc. The end of what it printed:"
tail -40 "$TMP/claude.md" "$TMP/claude.err" || true
printf '**Claude review** failed (exit %s). The Actions log for this run has the details.\n' "$rc" > "$TMP/out.md" printf '**Claude review** failed (exit %s). The Actions log for this run has the details.\n' "$rc" > "$TMP/out.md"
post_comment "$num" "$TMP/out.md" post_comment "$num" "$TMP/out.md"
exit 1 exit 1