Change all fmt.Errorfs to use %w

This commit is contained in:
2022-12-31 17:24:29 -07:00
parent 3cbe670bc1
commit 984321c9fc
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ func GetConfig() (config.Config[Config], error) {
_, err := configData.Get()
if err != nil {
return configData, fmt.Errorf("Could not read config file: %v", err)
return configData, fmt.Errorf("Could not read config file: %w", err)
}
return configData, nil