Repository navigation
fix: clean config error messages for operators - #46
Merged
Merged
Conversation
rahulcrl
force-pushed
the
improve_config_error_ux
branch
from
July 20, 2026 09:32
152ed3f to
ed4228a
Compare
rahulcrl
marked this pull request as ready for review
July 20, 2026 11:42
rahulcrl
force-pushed
the
improve_config_error_ux
branch
from
July 20, 2026 11:48
ed4228a to
1ba248b
Compare
TheComputerM
approved these changes
Jul 21, 2026
rahulcrl
force-pushed
the
improve_config_error_ux
branch
from
July 21, 2026 06:55
1ba248b to
331eebd
Compare
rahulcrl
force-pushed
the
improve_config_error_ux
branch
from
July 21, 2026 07:09
331eebd to
34627c7
Compare
Contributor
Author
|
TFTR @TheComputerM! |
Config errors (missing env vars, bad DSN, disallowed auth) now print a single readable line with a README link instead of a JSON log with stack traces. Runtime errors still get the structured zap treatment.
rahulcrl
force-pushed
the
improve_config_error_ux
branch
from
July 21, 2026 07:21
34627c7 to
adfacf7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
db.ErrInvalidConfigsentinel marks config-shaped errors (bad DSN, disallowed auth) detected after config.Load so main can route them to the plain-text pathBefore
After
Test plan
go test ./...passes (all 8 packages)