mirror of
https://github.com/octoleo/restic.git
synced 2024-12-23 03:18:55 +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) {
|
||||
return nil, errors.Errorf("%v: invalid data returned", h)
|
||||
return nil, errors.Errorf("load %v: invalid data returned", h)
|
||||
}
|
||||
|
||||
// decrypt
|
||||
|
Loading…
Reference in New Issue
Block a user