wfe2: fix typo in err msg (#4208)

This commit is contained in:
Daniel McCarney 2019-05-08 13:34:43 -04:00 committed by GitHub
parent 233b0d667f
commit 276ce30adf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -455,7 +455,7 @@ func (wfe *WebFrontEndImpl) lookupJWK(
wfe.stats.joseErrorCount.With(prometheus.Labels{"type": "JWSKeyIDLookupFailed"}).Inc()
// Add an error to the log event with the internal error message
logEvent.AddError(fmt.Sprintf("Error calling SA.GetRegistration: %s", err.Error()))
return nil, nil, probs.ServerInternal("Error retreiving account %q", accountURL)
return nil, nil, probs.ServerInternal("Error retrieving account %q", accountURL)
}
// Verify the account is not deactivated

View File

@ -1043,7 +1043,7 @@ func TestLookupJWK(t *testing.T) {
Request: makePostRequestWithPath("test-path", errorIDJWSBody),
ExpectedProblem: &probs.ProblemDetails{
Type: probs.ServerInternalProblem,
Detail: "Error retreiving account \"http://localhost/acme/acct/100\"",
Detail: "Error retrieving account \"http://localhost/acme/acct/100\"",
HTTPStatus: http.StatusInternalServerError,
},
ErrorStatType: "JWSKeyIDLookupFailed",