aboutsummaryrefslogtreecommitdiff
path: root/cmd/drawtext/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/drawtext/main.go')
-rw-r--r--cmd/drawtext/main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/drawtext/main.go b/cmd/drawtext/main.go
index 5f02e5d..251cd7a 100644
--- a/cmd/drawtext/main.go
+++ b/cmd/drawtext/main.go
@@ -2,6 +2,7 @@ package main
import (
"flag"
+ "log"
"os"
"dim13.org/robo"
@@ -12,7 +13,10 @@ var scale = flag.Float64("scale", 1.0, "font scale")
func main() {
flag.Parse()
- dev := robo.NewDevice()
+ dev, err := robo.NewDevice()
+ if err != nil {
+ log.Fatal(err)
+ }
defer dev.Close()
handle := dev.Handle()