mirror of https://github.com/docker/cli.git
err message improve when ssh fail
Signed-off-by: Lifubang <lifubang@acmcoder.com>
This commit is contained in:
parent
b9a1a21fe2
commit
99f336a580
|
@ -181,7 +181,7 @@ func (c *commandConn) onEOF(eof error) error {
|
||||||
c.stderrMu.Lock()
|
c.stderrMu.Lock()
|
||||||
stderr := c.stderr.String()
|
stderr := c.stderr.String()
|
||||||
c.stderrMu.Unlock()
|
c.stderrMu.Unlock()
|
||||||
return errors.Errorf("command %v has exited with %v, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=%q", c.cmd.Args, werr, stderr)
|
return errors.Errorf("command %v has exited with %v, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=%s", c.cmd.Args, werr, stderr)
|
||||||
}
|
}
|
||||||
|
|
||||||
func ignorableCloseError(err error) bool {
|
func ignorableCloseError(err error) bool {
|
||||||
|
|
Loading…
Reference in New Issue