show AMI id in error message
This commit is contained in:
parent
231f01cd35
commit
68040f786c
|
@ -35,7 +35,7 @@ func (s *StepPreValidate) Run(state multistep.StateBag) multistep.StepAction {
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(resp.Images) > 0 {
|
if len(resp.Images) > 0 {
|
||||||
err := fmt.Errorf("Error: an AMI with that name already exists")
|
err := fmt.Errorf("Error: name conflicts with an existing AMI: %s", *resp.Images[0].ImageID)
|
||||||
state.Put("error", err)
|
state.Put("error", err)
|
||||||
ui.Error(err.Error())
|
ui.Error(err.Error())
|
||||||
return multistep.ActionHalt
|
return multistep.ActionHalt
|
||||||
|
|
Loading…
Reference in New Issue