File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ func (l *Loader) parseConfig() error {
185
185
// Load configuration from flags only.
186
186
err = l .viper .Unmarshal (l .cfg )
187
187
if err != nil {
188
- return err
188
+ return fmt . Errorf ( "can't unmarshal config by viper (flags): %w" , err )
189
189
}
190
190
191
191
return nil
@@ -201,7 +201,7 @@ func (l *Loader) parseConfig() error {
201
201
202
202
// Load configuration from all sources (flags, file).
203
203
if err := l .viper .Unmarshal (l .cfg , fileDecoderHook ()); err != nil {
204
- return fmt .Errorf ("can't unmarshal config by viper: %w" , err )
204
+ return fmt .Errorf ("can't unmarshal config by viper (flags, file) : %w" , err )
205
205
}
206
206
207
207
if l .cfg .InternalTest { // just for testing purposes: to detect config file usage
You can’t perform that action at this time.
0 commit comments