{"version":"2.1.198","anchor":"hooks-improved-validation-error-messages","canonical_anchor":"hooks-improved-validation-error-messages","heading":"Hooks: Improved Validation Error Messages","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.198\/e\/hooks-improved-validation-error-messages","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.198","markdown":"### Hooks: Improved Validation Error Messages\n\nHook configuration parsing now reports cleaner, more specific errors: invalid hook event names, malformed matcher arrays, and wrong top-level types each produce distinct messages with the offending path.\n\n**Details**\n\n- `\"must be an object mapping hook event names to matcher arrays; received <type>\"` for wrong root type\n- `\"unknown hook event. Valid events: <list>\"` for unrecognized event names\n- `\"must be an array of matchers; received <type>\"` for non-array event handlers\n\n**Evidence**\n\nNew validator (search for `\"must be an object mapping hook event names to matcher arrays\"`)"}