{"version":"2.1.337","anchor":"sdk-error-result-text-handles-errors-on-success-subtype","canonical_anchor":"sdk-error-result-text-handles-errors-on-success-subtype","heading":"SDK error text no longer goes missing when a successful result carries errors","tier":"notice","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/sdk-error-result-text-handles-errors-on-success-subtype","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### SDK error text no longer goes missing when a successful result carries errors\n\nThe SDK now shows the listed errors when a result marked as success also has errors, instead of losing them or crashing\n\n**What**\n\nThe SDK lets programs drive Claude Code from code. When a result is flagged as an error, the SDK picks the text to report.\n\n- If the result is of the success kind and has no list of errors, it uses the result text.\n\n- Otherwise it joins the listed errors together, and uses an empty list if there are none.\n\nBefore, a success-kind result always gave its result text, and any other kind assumed a list of errors was present.\n\n**Why**\n\nError text from the SDK is no longer lost, and no longer causes a crash, when a success-kind result carries errors.\n\n- Area: SDK\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}