Commit 450ba0bd authored by Jack Pearkes's avatar Jack Pearkes

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

parent 5b2aaf33
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment