Skip to content

Commit

Permalink
Fix nil pointer dereference and increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi committed Oct 30, 2024
1 parent 7a24724 commit a91a6e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions local-rt-setup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
)

const (
maxConnectionWaitSeconds = 300
maxConnectionWaitSeconds = 500
waitSleepIntervalSeconds = 10
jfrogHomeEnv = "JFROG_HOME"
licenseEnv = "RTLIC"
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit a91a6e2

Please sign in to comment.