Added the exit code as well...

This commit is contained in:
Sander van Harmelen 2015-05-05 21:56:20 +02:00
parent 48f4d499f9
commit 3881c81a66
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ func (c *Communicator) UploadScript(path string, input io.Reader) error {
if cmd.ExitStatus != 0 {
return fmt.Errorf(
"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