StepHTTPServer: display error if we could not connect
This commit is contained in:
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…
Reference in New Issue