Skip to content

Commit

Permalink
Improve error description for input validation fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thisara-Welmilla committed Dec 10, 2024
1 parent 35b7380 commit b975d69
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ private static void validateAuthPropForFederatedAuthenticator(
if (!areAllDistinct(properties)) {
Constants.ErrorMessage error = Constants.ErrorMessage.ERROR_CODE_INVALID_INPUT;
throw new IdentityProviderManagementClientException(error.getCode(), error.getMessage(),
error.getDescription());
String.format(error.getDescription(), " Duplicate properties are found in " +
"the request."));
}
}

Expand Down

0 comments on commit b975d69

Please sign in to comment.