From ea3d647c2dfb1706766b9569f1d56a4912e3267a Mon Sep 17 00:00:00 2001 From: Frederic Lemoine Date: Fri, 26 Nov 2021 16:15:15 +0100 Subject: [PATCH] Updated error message in removeTip --- tree/tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tree/tree.go b/tree/tree.go index 5151840..1ba555a 100644 --- a/tree/tree.go +++ b/tree/tree.go @@ -369,7 +369,7 @@ func (t *Tree) removeTip(tip *Node) error { e = t.ConnectNodes(n2, n1) t.SetRoot(n2) } else if len(n2.neigh) == 1 || len(n1.neigh) == 1 { - return fmt.Errorf("After removing the tip %s connected to the root, RemoveTip could not find a new node to set as a root (the children of the root are either tips or single nodes", tip.Name()) + return fmt.Errorf("After removing the tip %s connected to the root, RemoveTip could not find a new node to set as a root (the children of the root are either tips or single nodes). You can run gotree collapse single or call RemoveSingleNodes.", tip.Name()) } else { return fmt.Errorf("The tree after tip removal is only made of two tips after removing tip %s", tip.Name()) }