From 3881c81a664f93867327738df2c6e38862d23442 Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Tue, 5 May 2015 21:56:20 +0200 Subject: [PATCH] Added the exit code as well... --- communicator/ssh/communicator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/communicator/ssh/communicator.go b/communicator/ssh/communicator.go index 95cd58136..ea6aa6887 100644 --- a/communicator/ssh/communicator.go +++ b/communicator/ssh/communicator.go @@ -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