From 5f292261ce02558208cc05406d4984daad82666b Mon Sep 17 00:00:00 2001 From: "git.teal.net setup" Date: Fri, 27 Nov 2026 18:47:45 +0000 Subject: [PATCH] Show Claude Code's output in the log when it fails. Co-Authored-By: Claude Opus 5.5 --- review.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/review.sh b/review.sh index ca85d0b..6e18729 100644 --- a/review.sh +++ b/review.sh @@ -151,7 +151,8 @@ rc=$? set -e 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" post_comment "$num" "$TMP/out.md" exit 1