summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
Diffstat (limited to 'exit.go')
-rw-r--r--exit.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/exit.go b/exit.go
new file mode 100644
index 0000000..7b8b027
--- /dev/null
+++ b/exit.go
@@ -0,0 +1,18 @@
+package main
+
+import (
+ "os"
+
+ "go.wit.com/log"
+)
+
+func okExit(thing string) {
+ log.Info(thing, "ok")
+ // log.Info("Finished go-clean on", check.GetGoPath(), "ok")
+ os.Exit(0)
+}
+
+func badExit(err error) {
+ log.Info("forge failed: ", err, me.forge.GetGoSrc())
+ os.Exit(-1)
+}