mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-11 01:30:06 -04:00
post-processor/vagrant-cloud: improve error for upload failures
This commit is contained in:
parent
5b2aaf3393
commit
450ba0bd9d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue