feat: implement standardized error message templates #321

Merged
freemo merged 1 commit from feature/m1-error-templates into master 2026-03-16 20:07:14 +00:00
Owner

Summary

  • Implements Issue #296: Standardized Error Message Templates
  • Creates ValidationMessages module with 15 player-friendly error templates
  • Integrates templates into the validation pipeline (ParamMatcher, TypeChecker, ReferenceResolver)
  • Adds override mechanism for customization/localization
  • Adds usage string generation utilities

Details

This PR implements standardized error message templates for the validation framework. All 15 templates are:

  • Player-friendly (no technical jargon)
  • Consistently formatted (sentence case, proper punctuation)
  • Support keyword interpolation for dynamic values
  • Easily overridable via set_override/reset_overrides!

Testing

  • Added 42 new Cucumber scenarios with 138 steps
  • Updated existing validation pipeline tests to use new message format
  • All validation-related tests pass (128 scenarios, 530 steps)

Closes

Closes #296

## Summary - Implements Issue #296: Standardized Error Message Templates - Creates ValidationMessages module with 15 player-friendly error templates - Integrates templates into the validation pipeline (ParamMatcher, TypeChecker, ReferenceResolver) - Adds override mechanism for customization/localization - Adds usage string generation utilities ## Details This PR implements standardized error message templates for the validation framework. All 15 templates are: - Player-friendly (no technical jargon) - Consistently formatted (sentence case, proper punctuation) - Support keyword interpolation for dynamic values - Easily overridable via set_override/reset_overrides! ## Testing - Added 42 new Cucumber scenarios with 138 steps - Updated existing validation pipeline tests to use new message format - All validation-related tests pass (128 scenarios, 530 steps) ## Closes Closes #296
freemo force-pushed feature/m1-error-templates from 6bd04bbce6 to 1126534673 2026-03-16 16:57:07 +00:00 Compare
freemo force-pushed feature/m1-error-templates from 1126534673 to 54c748c4f6 2026-03-16 17:31:54 +00:00 Compare
freemo force-pushed feature/m1-error-templates from 54c748c4f6 to 123669428d 2026-03-16 20:02:34 +00:00 Compare
freemo merged commit 123669428d into master 2026-03-16 20:07:14 +00:00
freemo deleted branch feature/m1-error-templates 2026-03-16 20:07:15 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: aethyr/Aethyr#321
No description provided.