## Lesson — Matching error message substrings couples logic

**Tags:** errors, patterns

Matching error message substrings couples logic to the exact wording of utility errors, making it brittle. Use exported error codes or discriminated properties to create resilient and type-safe error-handling branches.
