mirror of
https://github.com/restic/restic.git
synced 2025-03-13 19:00:51 +00:00
Improve error message
This commit is contained in:
parent
0492eabff1
commit
8c34eaad15
@ -61,7 +61,7 @@ func (r *Repository) LoadAndDecrypt(t restic.FileType, id restic.ID) ([]byte, er
|
|||||||
}
|
}
|
||||||
|
|
||||||
if t != restic.ConfigFile && !restic.Hash(buf).Equal(id) {
|
if t != restic.ConfigFile && !restic.Hash(buf).Equal(id) {
|
||||||
return nil, errors.Errorf("%v: invalid data returned", h)
|
return nil, errors.Errorf("load %v: invalid data returned", h)
|
||||||
}
|
}
|
||||||
|
|
||||||
// decrypt
|
// decrypt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user