summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-18 07:29:44 -0600
committerJeff Carr <[email protected]>2025-01-18 07:29:44 -0600
commitd51f5b385ab89fd9b898d8feec470289b5db6802 (patch)
treea1f2e74dc83aabd70f62d7fea47007aa89b38d22 /exit.go
parent1e5fac4cd85f0270d9997792fa85c11c35c0d2f2 (diff)
attempt to fix when not using forgev0.22.57
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..5ddbcf6
--- /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("go-deb failed: ", err)
+ os.Exit(-1)
+}