summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-14 18:04:39 -0500
committerJeff Carr <[email protected]>2025-10-14 18:04:39 -0500
commit97a695752040ccf96335c5e593bd9856a61a5fb6 (patch)
tree1e80d7ec108f7a0973b957bf1d7912458bd35e04 /exit.go
parentc5a8b130ee51f69ed9d11719da1cb80d1c2c7048 (diff)
thoughts on errorsv0.0.24
Diffstat (limited to 'exit.go')
-rw-r--r--exit.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/exit.go b/exit.go
new file mode 100644
index 0000000..8e70a55
--- /dev/null
+++ b/exit.go
@@ -0,0 +1,16 @@
+package config
+
+// this is an experiment at this point to
+// see how this turns out
+
+import (
+ "os"
+
+ "go.wit.com/log"
+)
+
+// todo: figure out how to pass this back to argv
+func BadExit(reason string, err error) {
+ log.Exit("lib/config exiting here", reason, err)
+ os.Exit(-1)
+}