mirror of
https://github.com/restic/restic.git
synced 2026-07-11 01:35:08 +00:00
Add more error handling
This commit is contained in:
Vendored
+6
-1
@@ -17,7 +17,12 @@ func TestCacheDirEnv(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer os.Unsetenv("RESTIC_CACHE_DIR")
|
||||
defer func() {
|
||||
err := os.Unsetenv("RESTIC_CACHE_DIR")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
dir, err := DefaultDir()
|
||||
|
||||
Reference in New Issue
Block a user