handle platform init error

This commit is contained in:
Alex Yatskov 2019-01-08 19:22:47 -08:00
parent 1aea67f7f0
commit 24ba631864

View File

@ -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))