From 2cafabefdeb75902501a57f0a3eb12de889e35ec Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 23 Jul 2021 01:35:40 -0500 Subject: [PATCH] config: Correct dir create failure error message. This corrects the error message when the home directory fails to be created since the %w verb only works with fmt.Errorf. --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 15ea890c..861dd800 100644 --- a/config.go +++ b/config.go @@ -790,7 +790,7 @@ func loadConfig(appName string) (*config, []string, error) { } } - str := "%s: failed to create home directory: %w" + str := "%s: failed to create home directory: %s" err := errSuppressUsage(fmt.Sprintf(str, funcName, err)) return nil, nil, err }