Files
labca/patches/errors_errors.patch
2023-03-04 13:58:24 +01:00

18 lines
676 B
Diff

diff --git a/errors/errors.go b/errors/errors.go
index 83adf7f1..cc136790 100644
--- a/errors/errors.go
+++ b/errors/errors.go
@@ -163,10 +163,10 @@ func NotFoundError(msg string, args ...interface{}) error {
return New(NotFound, msg, args...)
}
-func RateLimitError(retryAfter time.Duration, msg string, args ...interface{}) error {
+func RateLimitError(errURL string, retryAfter time.Duration, msg string, args ...interface{}) error {
return &BoulderError{
Type: RateLimit,
- Detail: fmt.Sprintf(msg+": see https://letsencrypt.org/docs/rate-limits/", args...),
+ Detail: fmt.Sprintf(msg+": see "+errURL, args...),
RetryAfter: retryAfter,
}
}