Skip to content

Commit

Permalink
Fix nil pointer dereference and increase timeout (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi authored Oct 30, 2024
1 parent 7a24724 commit 28076c6
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 = 600
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 28076c6

Please sign in to comment.