From 967484ce3a4e0891eeb9eab5bc87dd9c656efed5 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 2 May 2019 17:28:06 +0200 Subject: [PATCH] apps/hello: fix error handling Signed-off-by: Elias Naur --- apps/hello/hello.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/hello/hello.go b/apps/hello/hello.go index bd108c7b..ef9ed7ab 100644 --- a/apps/hello/hello.go +++ b/apps/hello/hello.go @@ -59,7 +59,7 @@ func loop(w *app.Window) { faces.Frame() } } - if w.Err() != nil { + if err := w.Err(); err != nil { log.Fatal(err) } }