summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-26 10:06:24 -0500
committerJeff Carr <[email protected]>2025-10-26 10:06:24 -0500
commit6eb6625374d6d0f0f81245f549ffac3542f29790 (patch)
treeb505e52874d0c64bdf8b32357090675e9f7acb7d
parent161347d22985c808c912c141ce8f55602f1dc731 (diff)
was wrongv0.0.46
-rw-r--r--argv.Print.go2
-rw-r--r--exit.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/argv.Print.go b/argv.Print.go
index 9886834..2d7ea80 100644
--- a/argv.Print.go
+++ b/argv.Print.go
@@ -89,7 +89,7 @@ func PrintStderr() {
func PrintStdout() {
line := strings.TrimSpace(PB.Stdout)
if line == "" {
- // return
+ return
}
fmt.Fprintf(os.Stdout, " %s\n", line)
}
diff --git a/exit.go b/exit.go
index 72d3271..125b870 100644
--- a/exit.go
+++ b/exit.go
@@ -53,7 +53,7 @@ func (pb *Argv) badExit(msg string, err error) {
}
} else {
// If it's not a joined error, you can fall back to the single-unwrap loop.
- fmt.Printf("Error: (%v)\n", u)
+ fmt.Printf("Error: (%v)\n", err)
}
}