/// <summary> /// Adds an error node to the tree. /// </summary> /// <param name="node">The parent tree node.</param> void AddBuildFileError(TreeNode node, NAntBuildFileError buildFileError) { NAntBuildFileErrorTreeNode errorNode = new NAntBuildFileErrorTreeNode(buildFileError); node.Nodes.Add(errorNode); }