diff --git a/tools/viewer/viewer.go b/tools/viewer/viewer.go index 16297fb..1f613d1 100644 --- a/tools/viewer/viewer.go +++ b/tools/viewer/viewer.go @@ -139,7 +139,10 @@ func main() { os.Exit(2) } - platform.Initialize() + if err := platform.Initialize(); err != nil { + fmt.Fprintln(os.Stderr, err) + os.Exit(1) + } defer platform.Shutdown() animation, err := loadAnimation(flag.Arg(0))