From c08029af7f3d84819705257fc94e4397014a6285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Wed, 28 Feb 2024 00:26:19 -0600 Subject: [PATCH] Update fsnotify/filewatcher.go Co-authored-by: Yugandhar Vardhineni --- fsnotify/filewatcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsnotify/filewatcher.go b/fsnotify/filewatcher.go index d2f773d..10c2200 100644 --- a/fsnotify/filewatcher.go +++ b/fsnotify/filewatcher.go @@ -46,7 +46,7 @@ type pathWatch struct { func readConfigFile(path string) (v []byte, err error) { v, err = ioutil.ReadFile(path) if err != nil { - return nil, errors.Wrap(err, fmt.Sprintf("could not read %v", path)) + return nil, errors.Wrapf(err, "could not read %v", path) } v = []byte(strings.TrimSpace(string(v))) return