From d94a5b7d05a66c6856d719fbdd8770f7b154503b Mon Sep 17 00:00:00 2001 From: Ken Cochrane Date: Thu, 14 Mar 2013 20:21:03 -0700 Subject: [PATCH] only show status message if there is one to show --- commands.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 4bf3f8a9d..09a678921 100644 --- a/commands.go +++ b/commands.go @@ -105,7 +105,9 @@ func (srv *Server) CmdLogin(stdin io.ReadCloser, stdout io.Writer, args ...strin if err != nil { fmt.Fprintf(stdout, "Error : %s\n", err) } - fmt.Fprintf(stdout, status) + if status != "" { + fmt.Fprintf(stdout, status) + } return nil }