Add format string for error wrap
This commit is contained in:
parent
62037b9dab
commit
1a1689cd88
@ -26,7 +26,7 @@ func getConfigFilePath(filename string) (string, error) {
|
|||||||
if configHome == "" {
|
if configHome == "" {
|
||||||
usr, err := user.Current()
|
usr, err := user.Current()
|
||||||
if err != nil {
|
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")
|
configHome = filepath.Join(usr.HomeDir, ".config")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user