Return err from Application.Run

This commit is contained in:
2022-11-06 14:47:37 -05:00
parent b773ba6fc6
commit f6b8d9903b
2 changed files with 10 additions and 29 deletions

View File

@@ -7,7 +7,8 @@ import _ "git.tebibyte.media/sashakoshka/stone/backends/pixel"
func main () {
application := stone.Application { }
application.Run(run)
err := application.Run(run)
if err != nil { panic(err) }
}
func run (application *stone.Application) {