spelling: error
This commit is contained in:
parent
04d6bfc696
commit
fc99dc25ae
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue