summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.go b/main.go
index a20a745..e1ff2a1 100644
--- a/main.go
+++ b/main.go
@@ -4,7 +4,10 @@ package main
func main() {
w := NewWindow("Main Window")
w.Closing = make(chan struct{})
- w.Open()
+ err := w.Open()
+ if err != nil {
+ panic(err)
+ }
<-w.Closing
w.Close()
}