mirror of
https://github.com/restic/restic.git
synced 2026-10-12 04:57:12 +00:00
repository: Improve error message
This commit is contained in:
1 parent
8dba52dd71
commit
cbcf58f1c0
1 file changed
+1
-2
+1
-2
@@ -2,7 +2,6 @@ package repository
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"sync"
|
"sync"
|
||||||
@@ -79,7 +78,7 @@ func (idx *Index) Lookup(id backend.ID) (packID backend.ID, tpe pack.BlobType, o
|
|||||||
}
|
}
|
||||||
|
|
||||||
debug.Log("Index.Lookup", "id %v not found", id.Str())
|
debug.Log("Index.Lookup", "id %v not found", id.Str())
|
||||||
return nil, pack.Data, 0, 0, errors.New("id not found")
|
return nil, pack.Data, 0, 0, fmt.Errorf("id %v not found in index", id)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Has returns true iff the id is listed in the index.
|
// Has returns true iff the id is listed in the index.
|
||||||
|
|||||||
Reference in new issue
Block a user