From 64bf23bc1151fdc0f46020aa123610a05939fdd9 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 Upstream-commit: d94a5b7d05a66c6856d719fbdd8770f7b154503b Component: engine --- components/engine/commands.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/engine/commands.go b/components/engine/commands.go index 4bf3f8a9df..09a6789216 100644 --- a/components/engine/commands.go +++ b/components/engine/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 }