diff options
| author | Jeff Carr <[email protected]> | 2021-11-04 00:12:48 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-11-04 00:12:48 -0500 |
| commit | ae7a69b636bc145745ed8e2b30ab2adba166be74 (patch) | |
| tree | d40da36b80dac68c6df71af4d2f6ccb54e4d75e2 /new-structs.go | |
| parent | 8236be92dc72c2b443dc6ccfc2c2f6877af22afa (diff) | |
PANIC: remove almost all panic()s
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'new-structs.go')
| -rw-r--r-- | new-structs.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/new-structs.go b/new-structs.go index 62f826c..65b964f 100644 --- a/new-structs.go +++ b/new-structs.go @@ -99,7 +99,7 @@ func (n *Node) Dump() { log.Println("gui.Node.Dump() uiButton = ", n.uiButton) log.Println("gui.Node.Dump() uiText = ", n.uiText) if (n.id == "") { - panic("gui.Node.Dump() id == nil") + log.Println("THIS SHOULD NOT HAPPEN: gui.Node.Dump() id == nil") } } @@ -228,10 +228,9 @@ func (n *Node) AddTabNode(title string) *Node { } if (newNode.uiTab != nil) { - log.Println("wit/gui/ AddTabNode() Something went wrong tab == nil") + log.Println("ERROR: wit/gui/ AddTabNode() Something went wrong tab == nil") // TODO: try to find the tab or window and make them if need be // newNode.uiTab.Append(title, b.UiBox) - panic("newNode.uiTab") } return newNode @@ -244,7 +243,6 @@ func (n *Node) AddHorizontalBreak() *Node { n.uiBox.Append(tmp, false) } else { n.Dump() - // panic("AddHorizontalBreak") return nil } return n |
