diff --git a/lib/xmain/xmain.go b/lib/xmain/xmain.go index 80de10137..b0a1aeb3a 100644 --- a/lib/xmain/xmain.go +++ b/lib/xmain/xmain.go @@ -66,10 +66,10 @@ func Main(run RunFunc) { } if msg != "" { - if usage { - msg = fmt.Sprintf("%s\n%s", msg, "Run with --help to see usage.") - } ms.Log.Error.Print(msg) + if usage { + ms.Log.Error.Print("Run with --help to see usage.") + } } os.Exit(code) }