From 1a1689cd88c43cc4b499162fab1fd48eb26e67a6 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Fri, 5 Feb 2021 10:34:49 -0800 Subject: [PATCH] Add format string for error wrap --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 63fcc79..d59a37a 100644 --- a/config.go +++ b/config.go @@ -26,7 +26,7 @@ func getConfigFilePath(filename string) (string, error) { if configHome == "" { usr, err := user.Current() if err != nil { - return "", fmt.Errorf("error getting current user information", err) + return "", fmt.Errorf("error getting current user information: %w", err) } configHome = filepath.Join(usr.HomeDir, ".config") }