Commits

Vincent Schüßler  committed a2422f4

Rename onError to fatalError

  • Participants
  • Parent commits 05e947c

Comments (0)

Files changed (2)

 
 func (app *App) Run() {
 	listener, err := net.Listen(lnet, laddr)
-	onError(err)
+	fatalError(err)
 
 	switch serveProtocol {
 	case HTTP:
 	}
 
 	app, err := NewApp(*flagEnv)
-	onError(err)
+	fatalError(err)
 
 	app.Run()
 }
 
-func onError(err error) {
+func fatalError(err error) {
 	if err != nil {
 		logError(err)
 		os.Exit(1)