From 38150157a075ba9f3461de822075314be7598e8f Mon Sep 17 00:00:00 2001 From: yahavi Date: Wed, 30 Oct 2024 09:41:49 +0200 Subject: [PATCH] Fix nil pointer dereference and increase timeout --- local-rt-setup/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local-rt-setup/main.go b/local-rt-setup/main.go index de43caf..9cba8ed 100644 --- a/local-rt-setup/main.go +++ b/local-rt-setup/main.go @@ -23,7 +23,7 @@ import ( ) const ( - maxConnectionWaitSeconds = 300 + maxConnectionWaitSeconds = 600 waitSleepIntervalSeconds = 10 jfrogHomeEnv = "JFROG_HOME" licenseEnv = "RTLIC" @@ -258,7 +258,7 @@ func runInRetryLoop(doRequest func() (*http.Response, error), successMessage str } } } - err = errors.New("could not connect to Artifactory: " + err.Error()) + err = fmt.Errorf("could not connect to Artifactory: %w", err) return }