Skip to content

Conversation

@rstagi
Copy link
Owner

@rstagi rstagi commented Dec 21, 2025

Summary

  • ConfigError now includes optional diagnostics property with events collected before the error
  • bootstrap onError callback receives all errors (config validation + factory failures)

Closes #28

Test plan

  • ConfigError stores diagnostics when provided
  • resolveValues attaches diagnostics on missing required/validation fail
  • resolve attaches diagnostics on unsupported extension/missing file
  • bootstrap onError receives ConfigError with diagnostics
  • bootstrap onError receives factory errors too

- ConfigError now includes optional diagnostics array
- resolveValues/resolve attach diagnostics when throwing errors
- bootstrap onError callback receives all errors (config + factory)

Closes #28
@rstagi rstagi self-assigned this Dec 21, 2025
@rstagi rstagi merged commit 86d410d into main Dec 21, 2025
1 check passed
@rstagi rstagi deleted the feat/error-diagnostics-onerror branch December 21, 2025 16:20
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.

Expose some onError on bootstrap and allow logging the diagnostics

2 participants