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

import (
	"go.wit.com/lib/env"
	"go.wit.com/lib/protobuf/argvpb"
	"go.wit.com/log"
)

func okExit(thing string) {
	log.Info(thing, "ok")
	// log.Info("Finished go-clean on", check.GetNamespace(), "ok")
	argvpb.GoodExit(thing)
}

func badExit(err error) {
	log.Info("forge failed: ", err, env.Get("gopath"))
	argvpb.BadExit("guireleaser", err)
}