errors: introduce a 'not supported' error

This commit was moved from ipfs/interface-go-ipfs-core@a81e4359ce

This commit was moved from ipfs/boxo@2c70ad1761
This commit is contained in:
Steven Allen 2019-02-19 02:39:21 -08:00
parent 8cc592cde3
commit 8542b6569a

View File

@ -3,7 +3,8 @@ package iface
import "errors"
var (
ErrIsDir = errors.New("this dag node is a directory")
ErrNotFile = errors.New("this dag node is not a regular file")
ErrOffline = errors.New("this action must be run in online mode, try running 'ipfs daemon' first")
ErrIsDir = errors.New("this dag node is a directory")
ErrNotFile = errors.New("this dag node is not a regular file")
ErrOffline = errors.New("this action must be run in online mode, try running 'ipfs daemon' first")
ErrNotSupported = errors.New("operation not supported")
)