post-processor/vagrant-cloud: improve error for upload failures

This commit is contained in:
Jack Pearkes 2014-06-25 11:54:49 -04:00
parent 5b2aaf3393
commit 450ba0bd9d
1 changed files with 1 additions and 1 deletions

View File

@ -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
}