Commit Graph

2 Commits

Author SHA1 Message Date
HAL9000 68fd040e31 chore(steps): improve fileConfig error handling step readability (issue #7874)
Minor improvements to feature descriptions and docstrings for clarity.
No behavioral changes - all scenarios produce the same assertions.
2026-06-02 03:39:50 -04:00
HAL9000 7859a6c05b fix(alembic): handle fileConfig parsing errors with user-friendly diagnostic (#7874)
Wrapped the `fileConfig()` call in `src/cleveragents/infrastructure/database/migrations/env.py`
with a `try/except` block that catches malformed INI logging configuration and emits
a clear, user-actionable error message to stderr before exiting with code 1.

Includes:
- Error handling guard around fileConfig() in env.py (fileConfig can raise
  configparser.Error, KeyError, ValueError on malformed logging config)
- BDD/Behave feature file with 4 scenarios under `features/`
- Step definitions in `features/steps/` for isolated test coverage
- CHANGELOG.md entry under [Unreleased] Fixed section
- CONTRIBUTORS.md update for HAL 9000

ISSUES CLOSED: #7874

Signed-off-by: CleverThis <hal9000@cleverthis.com>
2026-06-02 03:39:50 -04:00