{"version":"2.1.311","anchor":"spawn-failure-logging-uses-the-original-error-message","canonical_anchor":"spawn-failure-logging-uses-the-original-error-message","heading":"Logs show the original error when Claude Code fails to start a program","tier":"internal","area":"Shell","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.311\/e\/spawn-failure-logging-uses-the-original-error-message","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.311","markdown":"### Logs show the original error when Claude Code fails to start a program\n\nWhen starting another program fails, Claude Code now logs the error's original message, with fixed fallback text when there is none\n\n**What**\n\nClaude Code sometimes starts other programs, for example to run a shell command. When starting one fails and the error carries a shortened message, Claude Code now writes the error's original message to its log and its diagnostic data, instead of the message it used before. It also has fallback text for when the failure is not a proper error, which reads \"the spawn threw a value that is not an Error\".\n\n**Why**\n\nOnly the logs and diagnostic data change. Nothing you see while working is different.\n\n- Area: Shell\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}