1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 03:19:47 +08:00

fix: handle new ProtoNode errors

This commit is contained in:
Rod Vagg
2022-09-30 14:50:54 +10:00
parent c8a4b6ae00
commit cb1ba70a9b
5 changed files with 22 additions and 6 deletions

View File

@ -537,7 +537,9 @@ func deserializeNode(nd *Node, dataFieldEncoding string) (*dag.ProtoNode, error)
Cid: c,
}
}
dagnode.SetLinks(links)
if err := dagnode.SetLinks(links); err != nil {
return nil, err
}
return dagnode, nil
}