Skip to content

feat: DEFAULT_MESSAGES for every MarkupGeneratorError code - #276

Merged
atherdon merged 2 commits into
mainfrom
feat/default-error-messages
Sep 29, 2026
Merged

atherdon merged 2 commits into
mainfrom
feat/default-error-messages

Conversation

@atherdon

Copy link
Copy Markdown
Contributor

Closes #262.

  • DEFAULT_MESSAGES lives next to the error class
  • constructor message is optional and falls back per code
  • writeHTML uses defaults for EMPTY_CONTENT / NOT_A_STRING / WRITE_FAILED
  • FILE_EXISTS and JSON errors still pass a path-specific message
  • removed ERROR_NO_CONTENT / ERROR_TYPE_NOT_STRING / CONST_FILE_* from constants.ts
  • HTML_EMAIL_* stay in constants.ts (not error codes)

@atherdon
atherdon merged commit a1892b1 into main Sep 29, 2026
3 checks passed
@atherdon
atherdon deleted the feat/default-error-messages branch September 29, 2026 03:18
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.

DEFAULT_MESSAGES

1 participant