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:
1 parent
a4a978bbcb
commit
5f292261ce
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user