only show status message if there is one to show

Upstream-commit: d94a5b7d05a66c6856d719fbdd8770f7b154503b
Component: engine
This commit is contained in:
Ken Cochrane
2013-03-14 20:21:03 -07:00
parent 53bd354957
commit 64bf23bc11
+3 -1
View File
@@ -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
}