Commit 3ab0d158 authored by Brian Tiger Chow's avatar Brian Tiger Chow

fix(merkledag) return static error

parent 7938d0f2
...@@ -104,7 +104,7 @@ func (n *Node) RemoveNodeLink(name string) error { ...@@ -104,7 +104,7 @@ func (n *Node) RemoveNodeLink(name string) error {
return nil return nil
} }
} }
return fmt.Errorf("merkledag: %s not found", name) return ErrNotFound
} }
// Copy returns a copy of the node. // Copy returns a copy of the node.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment