forked from TrueCloudLab/restic
Fix error message
This commit is contained in:
parent
6645cb04e6
commit
77c421b940
1 changed files with 2 additions and 2 deletions
|
@ -148,7 +148,7 @@ func (ch *ContentHandler) Load(t backend.Type, id backend.ID) ([]byte, error) {
|
||||||
// lookup storage hash
|
// lookup storage hash
|
||||||
blob, err := ch.bl.Find(Blob{ID: id})
|
blob, err := ch.bl.Find(Blob{ID: id})
|
||||||
if err != nil {
|
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
|
// load data
|
||||||
|
@ -235,7 +235,7 @@ func (ch *ContentHandler) Test(t backend.Type, id backend.ID) (bool, error) {
|
||||||
// lookup storage hash
|
// lookup storage hash
|
||||||
blob, err := ch.bl.Find(Blob{ID: id})
|
blob, err := ch.bl.Find(Blob{ID: id})
|
||||||
if err != nil {
|
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
|
id = blob.Storage
|
||||||
|
|
Loading…
Reference in a new issue