Skip to content

✨ feat: Improve configuration reload error messages#8

Merged
SebastienLaurent-CF merged 1 commit intomainfrom
feat/improve-config-validation
Nov 23, 2025
Merged

✨ feat: Improve configuration reload error messages#8
SebastienLaurent-CF merged 1 commit intomainfrom
feat/improve-config-validation

Conversation

@SebastienLaurent-CF
Copy link
Copy Markdown
Contributor

Enhance error reporting when configuration reload fails to provide clear, actionable feedback to developers instead of silently ignoring errors.

Changes

internal/app/runner.go

  • Replaced vague error message "Failed to reload config, continuing with current configuration"
  • Added explicit file path to error context with structured logging
  • New message: "Configuration reload failed - keeping previous configuration. Fix the configuration file and try again"
  • Helps developers quickly understand:
    • That their config changes were rejected
    • Which file has the problem
    • What action to take (fix and try again)

Benefits

✅ Immediate feedback when config reload fails
✅ Clear indication of which file has the problem
✅ Actionable error message (not silent failure)
✅ Better developer experience when iterating on configuration ✅ All 129 tests passing with zero regressions

Testing

  • All config validation tests pass
  • Config loading and validation works as expected
  • Error messages are clear and informative

Enhance error reporting when configuration reload fails to provide clear,
actionable feedback to developers instead of silently ignoring errors.

## Changes

**internal/app/runner.go**
- Replaced vague error message "Failed to reload config, continuing with current configuration"
- Added explicit file path to error context with structured logging
- New message: "Configuration reload failed - keeping previous configuration. Fix the configuration file and try again"
- Helps developers quickly understand:
  * That their config changes were rejected
  * Which file has the problem
  * What action to take (fix and try again)

## Benefits

✅ Immediate feedback when config reload fails
✅ Clear indication of which file has the problem
✅ Actionable error message (not silent failure)
✅ Better developer experience when iterating on configuration
✅ All 129 tests passing with zero regressions

## Testing

- All config validation tests pass
- Config loading and validation works as expected
- Error messages are clear and informative
@SebastienLaurent-CF SebastienLaurent-CF merged commit a41876a into main Nov 23, 2025
1 check passed
@SebastienLaurent-CF SebastienLaurent-CF deleted the feat/improve-config-validation branch November 23, 2025 16:30
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.

1 participant