summaryrefslogtreecommitdiff
path: root/exit.go
blob: 43051d4872bcdbd29270a1f3e7aee4459e427507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package main

import (
	"os"

	"go.wit.com/log"
)

func okExit(thing string) {
	if thing != "" {
		log.Info(thing, "ok")
	}
	// log.Info("Finished go-clean on", check.GetGoPath(), "ok")
	os.Exit(0)
}

func badExit(err error) {
	log.Info("go-deb failed: ", err)
	os.Exit(-1)
}