forked from TrueCloudLab/restic
Improve error message
This commit is contained in:
parent
0492eabff1
commit
8c34eaad15
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue