diff --git a/dag/dag.go b/dag/dag.go index 4c8768a..62e5de1 100644 --- a/dag/dag.go +++ b/dag/dag.go @@ -388,7 +388,10 @@ func (d *Dag) IterateDag(processLeaf func(leaf *DagLeaf, parent *DagLeaf)) error }) for _, childHash := range childHashes { - return iterate(childHash, &leaf.Hash) + err := iterate(childHash, &leaf.Hash) + if err != nil { + return err + } } return nil