1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

only show status message if there is one to show

This commit is contained in:
Ken Cochrane 2013-03-14 20:21:03 -07:00
parent 9b94d89b06
commit d94a5b7d05

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
}