2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-21 20:35:12 +00:00

Fix error message

This commit is contained in:
Alexander Neumann 2015-01-05 20:17:15 +01:00
parent 6645cb04e6
commit 77c421b940

View File

@ -148,7 +148,7 @@ func (ch *ContentHandler) Load(t backend.Type, id backend.ID) ([]byte, error) {
// lookup storage hash
blob, err := ch.bl.Find(Blob{ID: id})
if err != nil {
return nil, fmt.Errorf("Storage ID %s not found", id)
return nil, fmt.Errorf("Storage ID for ID %s not found", id)
}
// load data
@ -235,7 +235,7 @@ func (ch *ContentHandler) Test(t backend.Type, id backend.ID) (bool, error) {
// lookup storage hash
blob, err := ch.bl.Find(Blob{ID: id})
if err != nil {
return false, fmt.Errorf("Storage ID %s not found", id)
return false, fmt.Errorf("Storage ID for ID %s not found", id)
}
id = blob.Storage