Claude Code v2.1.337 ·
SDK error text no longer goes missing when a successful result carries errors
The SDK now shows the listed errors when a result marked as success also has errors, instead of losing them or crashing
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SDKArea: what it touches
Bug FixesKind: in v2.1.337,
Bug FixesSection of the release
What
The SDK lets programs drive Claude Code from code. When a result is flagged as an error, the SDK picks the text to report.
- If the result is of the success kind and has no list of errors, it uses the result text.
- Otherwise it joins the listed errors together, and uses an empty list if there are none.
Before, a success-kind result always gave its result text, and any other kind assumed a list of errors was present.
Why
Error text from the SDK is no longer lost, and no longer causes a crash, when a success-kind result carries errors.
See this entry in the whole of v2.1.337 →