1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 08:16:36 +00:00

Fix error message on Windows

This commit is contained in:
Alexander Neumann 2018-11-11 14:06:32 +01:00
parent c0572ca15f
commit 5b95bb7059

View file

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