summaryrefslogtreecommitdiff
path: root/init.go
blob: 1f6d54268eaa127cf11a16a95a776303929c4ff9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 11 february 2014
package ui

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