StepHTTPServer: display error if we could not connect

This commit is contained in:
Adrien Delorme 2019-03-18 16:09:53 +01:00
parent ae182a7c20
commit 51294287fa
1 changed files with 3 additions and 0 deletions

View File

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