mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-14 02:02:02 -04:00
StepHTTPServer: display error if we could not connect
This commit is contained in:
@@ -48,6 +48,9 @@ func (s *StepHTTPServer) Run(ctx context.Context, state multistep.StateBag) mult
|
||||
}.Listen(ctx)
|
||||
|
||||
if err != nil {
|
||||
err := fmt.Errorf("Error finding port: %s", err)
|
||||
state.Put("error", err)
|
||||
ui.Error(err.Error())
|
||||
return multistep.ActionHalt
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user