From 51294287fa4f0aaa15149d68e8b886ccef1c2bd3 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Mon, 18 Mar 2019 16:09:53 +0100 Subject: [PATCH] StepHTTPServer: display error if we could not connect --- common/step_http_server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/step_http_server.go b/common/step_http_server.go index e8cd1c6ca..b4eb7b00e 100644 --- a/common/step_http_server.go +++ b/common/step_http_server.go @@ -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 }