From 97a695752040ccf96335c5e593bd9856a61a5fb6 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 14 Oct 2025 18:04:39 -0500 Subject: thoughts on errors --- exit.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 exit.go (limited to 'exit.go') 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) +} -- cgit v1.2.3