提交 ee3be129 作者: Juan Batiz-Benet

set util.ErrNotFound = ds.ErrNotFound

上级 c1219303
...@@ -8,6 +8,7 @@ import ( ...@@ -8,6 +8,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
ds "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/datastore.go"
b58 "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58" b58 "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58"
mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash" mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
) )
...@@ -26,7 +27,7 @@ var ErrTimeout = errors.New("Error: Call timed out.") ...@@ -26,7 +27,7 @@ var ErrTimeout = errors.New("Error: Call timed out.")
var ErrSearchIncomplete = errors.New("Error: Search Incomplete.") var ErrSearchIncomplete = errors.New("Error: Search Incomplete.")
// ErrNotFound is returned when a search fails to find anything // ErrNotFound is returned when a search fails to find anything
var ErrNotFound = errors.New("Error: Not Found.") var ErrNotFound = ds.ErrNotFound
// Key is a string representation of multihash for use with maps. // Key is a string representation of multihash for use with maps.
type Key string type Key string
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论