1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 18:13:54 +08:00

refactor(merkledag) use one-off error

This commit is contained in:
Brian Tiger Chow
2014-10-28 02:21:20 -07:00
parent 1f9541d29b
commit 04e270a91e

View File

@ -103,7 +103,7 @@ func (n *Node) RemoveNodeLink(name string) error {
return nil
}
}
return u.ErrNotFound
return fmt.Errorf("merkledag: %s not found", name)
}
// Copy returns a copy of the node.