errors: introduce a 'not supported' error
This commit was moved from ipfs/interface-go-ipfs-core@a81e4359ce5808c1de22b5ec3c6f05b83d86499d This commit was moved from ipfs/boxo@2c70ad1761014168a0bdd27b6ec4628cb08e1001
Steven Allen committed
Feb 19, 2019 at 02:39 UTC
8542b6569a6169c39694cda227378484b6b40e18
1 file changed
+4
-3
core/coreiface/errors.go
+4
-3
@@ -3,7 +3,8 @@ package iface
3
import "errors"
4
5
var (
6
- ErrIsDir = errors.New("this dag node is a directory")
7
- ErrNotFile = errors.New("this dag node is not a regular file")
8
- ErrOffline = errors.New("this action must be run in online mode, try running 'ipfs daemon' first")
6
+ ErrIsDir = errors.New("this dag node is a directory")
7
+ ErrNotFile = errors.New("this dag node is not a regular file")
8
+ ErrOffline = errors.New("this action must be run in online mode, try running 'ipfs daemon' first")
9
+ ErrNotSupported = errors.New("operation not supported")
10
)