From a72c7d5986df14f5c4f3aa701fd72568d9b36dc8 Mon Sep 17 00:00:00 2001 From: Mikalai Radchuk Date: Thu, 14 Nov 2019 17:46:38 +0000 Subject: [PATCH] Log the latest error on timeout --- pkg/install/1-installresources.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/install/1-installresources.go b/pkg/install/1-installresources.go index e0a28d9d2..40b7d5f44 100644 --- a/pkg/install/1-installresources.go +++ b/pkg/install/1-installresources.go @@ -742,7 +742,7 @@ func (i *Installer) installResources(ctx context.Context, doc *api.OpenShiftClus } if time.Now().Sub(now) > 30*time.Minute { - return fmt.Errorf("timed out waiting for bootstrap configmap") + return fmt.Errorf("timed out waiting for bootstrap configmap. Last error: %v", err) } <-t.C