Skip to content

fix(errors): add ConstraintError and MalfunctionError with emoji prefixes#32

Merged
uladkasach merged 1 commit intomainfrom
vlad/fix-constraints-vs-malfunctions
Mar 13, 2026
Merged

fix(errors): add ConstraintError and MalfunctionError with emoji prefixes#32
uladkasach merged 1 commit intomainfrom
vlad/fix-constraints-vs-malfunctions

Conversation

@ehm-seaturtle
Copy link
Contributor

fix(errors): add ConstraintError and MalfunctionError with emoji prefixes

  • add ConstraintError (extends BadRequestError) with code.exit=2 and emoji ✋
  • add MalfunctionError (extends UnexpectedCodePathError) with code.exit=1 and emoji 💥
  • add exit field to HelpfulErrorCode type for cli tools
  • centralize prefix logic in HelpfulError with emoji support
  • bake emoji into message prefix (e.g., "✋ ConstraintError: message")

🐢🌊 surfed in by seaturtle[bot]

…ixes

- add ConstraintError (extends BadRequestError) with code.exit=2 and emoji ✋
- add MalfunctionError (extends UnexpectedCodePathError) with code.exit=1 and emoji 💥
- add exit field to HelpfulErrorCode type for cli tools
- centralize prefix logic in HelpfulError with emoji support
- bake emoji into message prefix (e.g., "✋ ConstraintError: message")

Co-authored-by: Ulad Kasach <uladkasach@gmail.com>
@uladkasach uladkasach merged commit eb9243e into main Mar 13, 2026
16 checks passed
@uladkasach uladkasach deleted the vlad/fix-constraints-vs-malfunctions branch March 13, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants