coreapi: move unixfs errors to the top
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
Łukasz Magiera committed
Mar 10, 2018 at 17:59 UTC
20b59ec1ec1d08705cecc05c49f74e4ce03f9177
1 file changed
+3
-3
core/coreapi/interface/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")