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.
1 parent 61d3a34 commit a81ca22Copy full SHA for a81ca22
cmd/builder/cmd/root.go
@@ -114,9 +114,10 @@ func initConfig() {
114
}
115
116
// load the config file
117
- if err := vp.ReadInConfig(); err == nil {
118
- cfg.Logger.Info("Using config file", zap.String("path", vp.ConfigFileUsed()))
+ if err := vp.ReadInConfig(); err != nil {
+ cobra.CheckErr(err)
119
120
+ cfg.Logger.Info("Using config file", zap.String("path", vp.ConfigFileUsed()))
121
122
// convert Viper's internal state into our configuration object
123
if err := vp.Unmarshal(&cfg); err != nil {
0 commit comments