We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
errors.Wrap()
nil
1 parent b6cf4d4 commit f1bb16eCopy full SHA for f1bb16e
config/config.go
@@ -70,7 +70,11 @@ func FromEnv(v Validator, options EnvOptions) error {
70
return errors.Wrap(err, "can't parse environment variables")
71
}
72
73
- return errors.Wrap(v.Validate(), "invalid configuration")
+ if err := v.Validate(); err != nil {
74
+ return errors.Wrap(err, "invalid configuration")
75
+ }
76
+
77
+ return nil
78
79
80
// ParseFlags parses CLI flags and stores the result
0 commit comments