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 @@ -72,19 +72,19 @@ func Load(configFile string) (*Config, error) {
72
72
if configFile != "" {
73
73
buf , err := os .ReadFile (configFile )
74
74
if err != nil {
75
- return nil , fmt .Errorf ("error reading config file: %s " , err )
75
+ return nil , fmt .Errorf ("error reading config file: %w " , err )
76
76
}
77
77
err = yaml .Unmarshal (buf , globalConfig )
78
78
if err != nil {
79
- return nil , fmt .Errorf ("error parsing config file: %s " , err )
79
+ return nil , fmt .Errorf ("error parsing config file: %w " , err )
80
80
}
81
81
}
82
82
// Load config values from environment variables
83
83
// We use "dummy" as the app name here to (mostly) prevent picking up env
84
84
// vars that we hadn't explicitly specified in annotations above
85
85
err := envconfig .Process ("dummy" , globalConfig )
86
86
if err != nil {
87
- return nil , fmt .Errorf ("error processing environment: %s " , err )
87
+ return nil , fmt .Errorf ("error processing environment: %w " , err )
88
88
}
89
89
return globalConfig , nil
90
90
}
You can’t perform that action at this time.
0 commit comments