Skip to content

Commit

Permalink
Merge pull request #757 from Thisara-Welmilla/fix-error-description
Browse files Browse the repository at this point in the history
Improve error description for input validation fail
  • Loading branch information
Thisara-Welmilla authored Dec 10, 2024
2 parents 2d66fb8 + b975d69 commit 2b125c5
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 2b125c5

Please sign in to comment.