From 450ba0bd9df80288342c26c1ef30a2c7cb557b82 Mon Sep 17 00:00:00 2001 From: Jack Pearkes Date: Wed, 25 Jun 2014 11:54:49 -0400 Subject: [PATCH] post-processor/vagrant-cloud: improve error for upload failures --- post-processor/vagrant-cloud/step_upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post-processor/vagrant-cloud/step_upload.go b/post-processor/vagrant-cloud/step_upload.go index 4fb43028c..0e8d20606 100644 --- a/post-processor/vagrant-cloud/step_upload.go +++ b/post-processor/vagrant-cloud/step_upload.go @@ -21,7 +21,7 @@ func (s *stepUpload) Run(state multistep.StateBag) multistep.StepAction { resp, err := client.Upload(artifactFilePath, url) if err != nil || (resp.StatusCode != 200) { - state.Put("error", fmt.Errorf("Error uploading Box: %s", resp.Body)) + state.Put("error", fmt.Errorf("Error uploading Box: %s", err)) return multistep.ActionHalt }