summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-22 09:18:35 -0500
committerJeff Carr <[email protected]>2025-10-22 09:18:35 -0500
commit26994805b3ecd5f4c5fcab5913b5afdeb35c2c73 (patch)
treec2a629b0ff461b853b6fbb35b7e88568ab625ac1
parent2bbc498b02cbbe3ba68de391bffbe79ab0f226fc (diff)
step1
-rw-r--r--argv.template.go3
-rw-r--r--exit.go4
2 files changed, 5 insertions, 2 deletions
diff --git a/argv.template.go b/argv.template.go
index e7a9948..1808722 100644
--- a/argv.template.go
+++ b/argv.template.go
@@ -10,6 +10,7 @@ import (
"go.wit.com/dev/alexflint/arg"
"go.wit.com/gui"
+ "go.wit.com/lib/ENV"
"go.wit.com/lib/fhelp"
"go.wit.com/log"
)
@@ -63,7 +64,7 @@ func (args) InitGui() error {
func (args) Exit() {
gui.UnloadToolkits()
- if me.argv.Verbose() {
+ if ENV.Verbose() {
log.Info("argv.Exit() called", APPNAME+".Exit()")
}
// remove this from the template for your app (or make one for youself if you need it)
diff --git a/exit.go b/exit.go
index baf6a62..4e87fd2 100644
--- a/exit.go
+++ b/exit.go
@@ -2,6 +2,7 @@ package main
import (
"fmt"
+ "path/filepath"
"go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
@@ -21,6 +22,7 @@ func badExit(check *gitpb.Repo, err error) {
eraseGoMod(check)
}
}
- s := fmt.Sprintf("failed: %s", me.forge.Config.ReposDir)
+ fullpath := filepath.Join(check.FullPath)
+ s := fmt.Sprintf("failed in %s", fullpath)
me.argv.BadExit(s, err)
}