diff --git a/core/coreapi/unixfs.go b/core/coreapi/unixfs.go index e4fb0f2e2501..984943cece57 100644 --- a/core/coreapi/unixfs.go +++ b/core/coreapi/unixfs.go @@ -5,7 +5,6 @@ import ( "fmt" "github.com/ipfs/go-ipfs/core" - "github.com/ipfs/go-ipfs/filestore" "github.com/ipfs/go-ipfs/core/coreunix" @@ -49,8 +48,8 @@ func (api *UnixfsAPI) Add(ctx context.Context, files files.Node, opts ...options // return //} - if settings.NoCopy && !cfg.Experimental.FilestoreEnabled { - return nil, filestore.ErrFilestoreNotEnabled + if settings.NoCopy && !(cfg.Experimental.FilestoreEnabled || cfg.Experimental.UrlstoreEnabled) { + return nil, fmt.Errorf("either the filestore or the urlstore must be enabled to use nocopy, see: https://git.io/vNItf") } addblockstore := api.blockstore