2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 11:28:54 +00:00

Improve error message

This commit is contained in:
Alexander Neumann 2017-02-11 14:28:15 +01:00
parent 0492eabff1
commit 8c34eaad15

View File

@ -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