andlabs-ui/init.go

21 lines
443 B
Go
Raw Normal View History

// 11 february 2014
package main
import (
"os"
)
func init() {
initDone := make(chan error)
go ui(initDone)
err := <-initDone
if err != nil {
// TODO provide copying instructions? will need to be system-specific
MsgBoxError("UI Library Init Failure",
"A failure occured during UI library initialization:\n%v\n" +
"Please report this to the application developer or on http://github.com/andlabs/ui.",
err)
os.Exit(1)
}
}