From 5b95bb7059d269cb0df4237bff55b92df7e757f5 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 11 Nov 2018 14:06:32 +0100 Subject: [PATCH] Fix error message on Windows --- internal/cache/dir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cache/dir.go b/internal/cache/dir.go index c4af67d44..0b427b8e3 100644 --- a/internal/cache/dir.go +++ b/internal/cache/dir.go @@ -32,7 +32,7 @@ func xdgCacheDir() (string, error) { func windowsCacheDir() (string, error) { appdata := os.Getenv("LOCALAPPDATA") if appdata == "" { - return "", errors.New("unable to locate cache directory (APPDATA unset)") + return "", errors.New("unable to locate cache directory (LOCALAPPDATA unset)") } return filepath.Join(appdata, "restic"), nil }