summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-11 19:34:28 -0500
committerPietro Gagliardi <[email protected]>2014-02-11 19:34:47 -0500
commitbc531d60d703e0113973a965450383049b930b73 (patch)
tree110be8d2b2e9c45f4b2002a68996fed93ed682e6 /main.go
parenta4182c606b634615adb7f61d8b22dd92fdb8cabb (diff)
More of the previous error and not printing panics... derp me. Still not fixed yet though...
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()
}