mirror of
https://github.com/restic/restic.git
synced 2025-08-20 15:57:34 +00:00
Add more error handling
This commit is contained in:
@@ -25,7 +25,8 @@ func writeTempfile(t testing.TB, data []byte) (string, func()) {
|
||||
err = closeErr
|
||||
}
|
||||
if err != nil {
|
||||
os.Remove(name)
|
||||
// ignore subsequent errors
|
||||
_ = os.Remove(name)
|
||||
t.Fatal(err)
|
||||
}
|
||||
}()
|
||||
|
Reference in New Issue
Block a user