Skip to content

Commit efbd9ef

Browse files
committed
Remove unnecessary %s in an error message
The %s is not necessary and results in errors like this being returned to the caller: { "error": "Client certificate validation failed: %s", "error_description": "Path does not chain with any of the trust anchors" } The e.getMessage() is put into the error_description, so the %s is just looks like a mistake.
1 parent 3ff556f commit efbd9ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/authlete/jaxrs/server/api/ClientRegistrationEndpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ private static void validateCertificate(HttpServletRequest request)
203203
catch (GeneralSecurityException e)
204204
{
205205
throw OBBDCRProcessor.errorResponse(Status.UNAUTHORIZED,
206-
"Client certificate validation failed: %s", e.getMessage());
206+
"Client certificate validation failed", e.getMessage());
207207
}
208208
}
209209
}

0 commit comments

Comments
 (0)