Added the exit code as well...
This commit is contained in:
parent
48f4d499f9
commit
3881c81a66
|
@ -244,7 +244,7 @@ func (c *Communicator) UploadScript(path string, input io.Reader) error {
|
||||||
if cmd.ExitStatus != 0 {
|
if cmd.ExitStatus != 0 {
|
||||||
return fmt.Errorf(
|
return fmt.Errorf(
|
||||||
"Error chmodding script file to 0777 in remote "+
|
"Error chmodding script file to 0777 in remote "+
|
||||||
"machine: %s %s", stdout.String(), stderr.String())
|
"machine %d: %s %s", cmd.ExitStatus, stdout.String(), stderr.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue