coreapi: move unixfs errors to the top
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@848f12365b041d32adfa2ba7d5e3b30a1bc4233b This commit was moved from ipfs/boxo@963f83df40b7e960430e8da91aef942e58278acd
Łukasz Magiera committed
Mar 10, 2018 at 17:59 UTC
a313b37f486d3e8ad1cbdfcb3f61e884b7e30b47
1 file changed
+3
-3
core/coreiface/interface.go
+3
-3
@@ -14,6 +14,9 @@ import (
14
ipld "gx/ipfs/Qme5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format"
15
)
16
17
+var ErrIsDir = errors.New("object is a directory")
18
+var ErrOffline = errors.New("can't resolve, ipfs node is offline")
19
+
20
// Path is a generic wrapper for paths used in the API. A path can be resolved
21
// to a CID using one of Resolve functions in the API.
22
type Path interface {
@@ -384,6 +387,3 @@ type PinAPI interface {
387
// Verify verifies the integrity of pinned objects
388
Verify(context.Context) (<-chan PinStatus, error)
389
}
387
-
388
-var ErrIsDir = errors.New("object is a directory")
389
-var ErrOffline = errors.New("can't resolve, ipfs node is offline")