File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,19 +110,19 @@ func Load(configFile string) (*Config, error) {
110
110
if configFile != "" {
111
111
buf , err := os .ReadFile (configFile )
112
112
if err != nil {
113
- return nil , fmt .Errorf ("error reading config file: %s " , err )
113
+ return nil , fmt .Errorf ("error reading config file: %w " , err )
114
114
}
115
115
err = yaml .Unmarshal (buf , globalConfig )
116
116
if err != nil {
117
- return nil , fmt .Errorf ("error parsing config file: %s " , err )
117
+ return nil , fmt .Errorf ("error parsing config file: %w " , err )
118
118
}
119
119
}
120
120
// Load config values from environment variables
121
121
// We use "dummy" as the app name here to (mostly) prevent picking up env
122
122
// vars that we hadn't explicitly specified in annotations above
123
123
err := envconfig .Process ("dummy" , globalConfig )
124
124
if err != nil {
125
- return nil , fmt .Errorf ("error processing environment: %s " , err )
125
+ return nil , fmt .Errorf ("error processing environment: %w " , err )
126
126
}
127
127
// Check profiles
128
128
availableProfiles := GetAvailableProfiles ()
You can’t perform that action at this time.
0 commit comments