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.
This commit is contained in:
Dave Collins 2021-07-23 01:35:40 -05:00
parent 22f37e40a4
commit 2cafabefde
No known key found for this signature in database
GPG Key ID: B8904D9D9C93D1F2

View File

@ -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
}