{"version":"2.1.273","anchor":"autofix-pr-better-gh-cli-failure-messages","canonical_anchor":"autofix-pr-better-gh-cli-failure-messages","heading":"Autofix-PR errors now show gh's real failure output","tier":"notice","area":"GitHub","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.273\/e\/autofix-pr-better-gh-cli-failure-messages","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.273","markdown":"### Autofix-PR errors now show gh's real failure output\n\nWhen gh pr view fails during autofix-PR, the error now includes gh's actual stderr instead of a generic message\n\n**What**\n\nWhen `gh pr view` fails for reasons other than the command not being found (ENOENT), the autofix-PR flow now includes the last 3 non-empty lines of gh's actual stderr output in the error message shown to the user or agent, instead of just the generic error object.\n\n**Why**\n\nThis gives a much more useful, specific reason when the `gh` CLI fails during an autofix PR, instead of a vague generic error.\n\n- Area: GitHub\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5"}