Question · Vibe coding with Claude Code course · Module 15: Advanced Claude Code
Quiz: A hook's exit code
A PreToolUse hook with no onFailure field printed the reason on stderr and ended with code 1. What happens to the edit?
Answer options
- It is blocked, because every code other than 0 is a block
- Claude Code asks you for consent
- The session ends with an error
- It goes through: code 1 is a non-blocking error, only code 2 blocks
You can check the correct answer by solving this task in the CodeWorlds game.