{"version":"2.1.329","anchor":"plugin-hook-setup-failures-now-carry-usermessage","canonical_anchor":"plugin-hook-setup-failures-now-carry-usermessage","heading":"Plugin hooks that fail to set up now pass on a readable message","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/plugin-hook-setup-failures-now-carry-usermessage","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### Plugin hooks that fail to set up now pass on a readable message\n\nWhen a plugin hook fails to set up, Claude Code now passes along a message written for you, with exit code 2 for that failure\n\n**What**\n\nA hook is a script that runs at set points while Claude Code works, and plugins can bring their own. When such a hook fails during setup, the result used to hold only two things. One was an exit code, a number saying how a program ended. The other was the last part of its error output. The result now also carries the error's message written for users.\n\nThe exit code is 2 for this kind of setup failure and 1 for any other error.\n\n**Why**\n\nWhen a hook cannot set up, the reason can now come in plain words, not only as raw error output.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}