summaryrefslogtreecommitdiff
path: root/node.go
diff options
context:
space:
mode:
Diffstat (limited to 'node.go')
-rw-r--r--node.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/node.go b/node.go
index c198f1b..156a507 100644
--- a/node.go
+++ b/node.go
@@ -15,8 +15,9 @@ there isn't much to see here.
*/
func (n *Node) newNode(s string, t widget.WidgetType) *Node {
if n == nil {
- log.Warn("newNode got parent == nil")
- panic("gui newNode")
+ log.Log(WARN, "newNode() ERROR got parent == nil")
+ // this is an error internal to this gui package
+ return n
}
var newN *Node
@@ -84,5 +85,5 @@ func (n *Node) Delete(d *Node) {
return
}
}
- log.Warn("did not find node to delete", d.id, d.progname)
+ log.Log(WARN, "did not find node to delete", d.id, d.progname)
}