summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-01-29 13:37:24 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2018-01-29 13:37:24 -0500
commitb527e2373e36dcb5707a544b2a3d9ddae3000c75 (patch)
tree590aa44d12d4fa05abab45dd68b197f02ebbc52f
parenta2cd9d788f7b39e9f17d1fa2dc1382bd2f98e2c1 (diff)
wmii: rbar_util (go): fix messages
-rw-r--r--.config/wmii-hg/rbar_util/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/.config/wmii-hg/rbar_util/main.go b/.config/wmii-hg/rbar_util/main.go
index 5fccd7e..2358dca 100644
--- a/.config/wmii-hg/rbar_util/main.go
+++ b/.config/wmii-hg/rbar_util/main.go
@@ -19,7 +19,7 @@ type Impl struct {
func gerror(status int, err error, format string, a ...interface{}) {
msg := fmt.Sprintf(format, a...)
if err == nil {
- fmt.Fprintf(os.Stderr, "%s: %s", os.Args[0], msg)
+ fmt.Fprintf(os.Stderr, "%s: %s\n", os.Args[0], msg)
} else {
fmt.Fprintf(os.Stderr, "%s: %s: %v", os.Args[0], msg, err)
}
@@ -35,7 +35,7 @@ func errusage(fmt string, a ...interface{}) {
}
func usage(w io.Writer) {
- fmt.Fprintf(w, "Usage: %[1]v NN_LABEL\n or: %[1]v BTN_ID\n or: %[1]v -h\n", os.Args[0])
+ fmt.Fprintf(w, "Usage: %[1]v NN_LABEL\n or: %[1]v BTN_ID\n or: %[1]v -h\n", os.Args[0])
}
func Main(impl Impl) {
@@ -59,7 +59,7 @@ func Main(impl Impl) {
fn = func() error { return impl.Update(arg) }
}
} else {
- errusage("invalid argument: %s\n", os.Args[1])
+ errusage("invalid argument: %s", os.Args[1])
}
}
if fn == nil {