err message improve when ssh fail

Signed-off-by: Lifubang <lifubang@acmcoder.com>
This commit is contained in:
Lifubang 2018-10-15 16:42:14 +08:00
parent b9a1a21fe2
commit 99f336a580
1 changed files with 1 additions and 1 deletions

View File

@ -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 {