StepHTTPServer: display error if we could not connect

pull/7423/head
Adrien Delorme 7 years ago
parent ae182a7c20
commit 51294287fa

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

Loading…
Cancel
Save