@cryptotaxi247 / kubo / commits / e2387ebbb

fix hamt node not protobuf error

License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Mar 28, 2018 at 15:11 UTC e2387ebbb6715178a626be805fc1c72c0b0780a7
1 file changed +1 -1
unixfs/hamt/hamt.go
+1 -1
@@ -100,7 +100,7 @@ func makeShard(ds ipld.DAGService, size int) (*Shard, error) {
100 func NewHamtFromDag(dserv ipld.DAGService, nd ipld.Node) (*Shard, error) {
101 pbnd, ok := nd.(*dag.ProtoNode)
102 if !ok {
103 - return nil, dag.ErrLinkNotFound
103 + return nil, dag.ErrNotProtobuf
104 }
105
106 pbd, err := format.FromBytes(pbnd.Data())