diff --git a/encoding/jsonfile/jsonfile.go b/encoding/jsonfile/jsonfile.go index 8719701..f33339d 100644 --- a/encoding/jsonfile/jsonfile.go +++ b/encoding/jsonfile/jsonfile.go @@ -26,7 +26,7 @@ func read(path string, data interface{}, unmarshal func(io.Reader, interface{}) defer file.Close() if err := unmarshal(file, data); err != nil { - return fmt.Errorf("%s: %s", path, err.Error()) + return fmt.Errorf("%s: %w", path, err) } return nil