summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
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)
+}