handle platform init error
This commit is contained in:
parent
1aea67f7f0
commit
24ba631864
@ -139,7 +139,10 @@ func main() {
|
|||||||
os.Exit(2)
|
os.Exit(2)
|
||||||
}
|
}
|
||||||
|
|
||||||
platform.Initialize()
|
if err := platform.Initialize(); err != nil {
|
||||||
|
fmt.Fprintln(os.Stderr, err)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
defer platform.Shutdown()
|
defer platform.Shutdown()
|
||||||
|
|
||||||
animation, err := loadAnimation(flag.Arg(0))
|
animation, err := loadAnimation(flag.Arg(0))
|
||||||
|
Loading…
Reference in New Issue
Block a user