Improve error message

This commit is contained in:
Alexander Neumann 2017-02-11 14:28:15 +01:00
parent 0492eabff1
commit 8c34eaad15
1 changed files with 1 additions and 1 deletions

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