aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go
index 503a5b466..63c10213d 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -19,7 +19,7 @@ func LoadFile(filename string, cfg interface{}) error {
}
data, err := os.ReadFile(filename)
if err != nil {
- return fmt.Errorf("failed to read config file: %v", err)
+ return fmt.Errorf("failed to read config file: %w", err)
}
return LoadData(data, cfg)
}
@@ -30,7 +30,7 @@ func LoadData(data []byte, cfg interface{}) error {
dec := json.NewDecoder(bytes.NewReader(data))
dec.DisallowUnknownFields()
if err := dec.Decode(cfg); err != nil {
- return fmt.Errorf("failed to parse config file: %v", err)
+ return fmt.Errorf("failed to parse config file: %w", err)
}
return nil
}