diff options
| author | Jeff Carr <[email protected]> | 2024-12-15 17:03:51 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-15 17:03:51 -0600 |
| commit | 8e9408bac890dd6a09ebb5a7fed752fa9a35a73e (patch) | |
| tree | 0bd307372dc4ac8b842a5f441343141e7cc5d12d /exit.go | |
| parent | 24ddb803f3e6509f55c6ef4a033175f4fd00f26d (diff) | |
don't os.exit anymore as oftenv0.23.0
Diffstat (limited to 'exit.go')
| -rw-r--r-- | exit.go | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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) +} |
