Merge pull request #16080 from Banno/add-msg-on-ssh-errors

communicator/ssh: add what error details we can for the user
This commit is contained in:
James Bardin 2017-10-03 10:21:57 -04:00 committed by GitHub
commit 7d5c320d0e
1 changed files with 1 additions and 1 deletions

View File

@ -467,7 +467,7 @@ func (c *Communicator) scpSession(scpCommand string, f func(io.Writer, *bufio.Re
if exitErr, ok := err.(*ssh.ExitError); ok {
// Otherwise, we have an ExitErorr, meaning we can just read
// the exit status
log.Printf("non-zero exit status: %d", exitErr.ExitStatus())
log.Printf(exitErr.String())
// If we exited with status 127, it means SCP isn't available.
// Return a more descriptive error for that.