diff options
| author | Jeff Carr <[email protected]> | 2025-10-04 16:38:32 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-04 16:38:32 -0500 |
| commit | 252f05877cb76ced8c6d3d5c989a528e3087da6c (patch) | |
| tree | 8622d53d54820f8ad761f4d21a90fac101a9fc66 | |
| parent | ec669a62c02da925dc5659d4525ff4eba05fae11 (diff) | |
GoodExit()v0.0.21
| -rw-r--r-- | exit.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -10,6 +10,12 @@ import ( // initializes logging and command line options +func (pb *Auto) GoodExit(msg string) { + dur := time.Since(pb.Ctime.AsTime()) + log.Infof("%s: %s (%s)\n", pb.Argname, msg, shell.FormatDuration(dur)) + os.Exit(-1) +} + func (pb *Auto) BadExit(msg string, err error) { if err != nil { log.Info(err) |
