spelling: error

This commit is contained in:
Josh Soref 2018-03-13 07:45:13 +00:00
parent 04d6bfc696
commit fc99dc25ae
1 changed files with 1 additions and 1 deletions

View File

@ -748,7 +748,7 @@ func (c *comm) scpSession(scpCommand string, f func(io.Writer, *bufio.Reader) er
err = session.Wait() err = session.Wait()
if err != nil { if err != nil {
if exitErr, ok := err.(*ssh.ExitError); ok { if exitErr, ok := err.(*ssh.ExitError); ok {
// Otherwise, we have an ExitErorr, meaning we can just read // Otherwise, we have an ExitError, meaning we can just read
// the exit status // the exit status
log.Printf("non-zero exit status: %d", exitErr.ExitStatus()) log.Printf("non-zero exit status: %d", exitErr.ExitStatus())
stdoutB, err := ioutil.ReadAll(stdoutR) stdoutB, err := ioutil.ReadAll(stdoutR)