Fix incorrect ARI error message (#7895)

This confusing error message was an accidental carry-over from sharing
some code with the NewOrder "replaces" ARI codepath.

Fixes https://github.com/letsencrypt/boulder/issues/7889
This commit is contained in:
Aaron Gable 2024-12-18 07:42:21 -08:00 committed by GitHub
parent 242d746040
commit 5c34d05d3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2731,7 +2731,7 @@ func (wfe *WebFrontEndImpl) RenewalInfo(ctx context.Context, logEvent *web.Reque
renewalInfo, err := wfe.determineARIWindow(ctx, decodedSerial)
if err != nil {
if errors.Is(err, berrors.NotFound) {
wfe.sendError(response, logEvent, probs.NotFound("Certificate replaced by this order was not found"), nil)
wfe.sendError(response, logEvent, probs.NotFound("Requested certificate was not found"), nil)
return
}
wfe.sendError(response, logEvent, probs.ServerInternal("Error determining renewal window"), err)