summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-12 04:30:43 -0500
committerJeff Carr <[email protected]>2025-10-12 04:30:43 -0500
commit890782893d553cb6dfdb42368b75fa9e8e893ff5 (patch)
tree74ae2c16e7d38669052eedb3508db8880dba5d87 /exit.go
parent12195649cd8610533082d2cfb10568fe4c080a4d (diff)
moved formatting to lib/cobol
Diffstat (limited to 'exit.go')
-rw-r--r--exit.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/exit.go b/exit.go
index 6643b64..5d629e3 100644
--- a/exit.go
+++ b/exit.go
@@ -5,7 +5,7 @@ import (
"os"
"time"
- "go.wit.com/lib/config"
+ "go.wit.com/lib/cobol"
"go.wit.com/log"
)
@@ -21,7 +21,7 @@ func (pb *Auto) GoodExit(msg string) {
myAuto.appExit()
}
dur := time.Since(pb.Ctime.AsTime())
- log.Infof("%s: %s (%s)\n", pb.Argname, msg, config.FormatDuration(dur))
+ log.Infof("%s: %s (%s)\n", pb.Argname, msg, cobol.FormatDuration(dur))
os.Exit(0)
}
@@ -34,7 +34,7 @@ func (pb *Auto) BadExit(msg string, err error) {
log.Info(err)
}
dur := time.Since(pb.Ctime.AsTime())
- log.Infof("%s: %s (%s)\n", pb.Argname, msg, config.FormatDuration(dur))
+ log.Infof("%s: %s (%s)\n", pb.Argname, msg, cobol.FormatDuration(dur))
os.Exit(-1)
}