Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

19300 fix #772

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,11 @@ private APIError handleI18nEmailMgtException(I18nEmailMgtException exception, Co
Constants.getMappedErrorMessage(exception.getErrorCode()) != null) {
// Specific error with code is found.
Constants.ErrorMessage errorMessage = Constants.getMappedErrorMessage(exception.getErrorCode());
errorResponse = getErrorBuilder(errorMessage).build(log, exception, errorEnum.getDescription());
if (errorMessage == Constants.ErrorMessage.ERROR_EMAIL_TEMPLATE_TYPE_ALREADY_EXISTS) {
errorResponse = getErrorBuilder(errorMessage).build(log, errorEnum.getDescription());
} else {
errorResponse = getErrorBuilder(errorMessage).build(log, exception, errorEnum.getDescription());
}
status = errorMessage.getHttpStatus();

} else if (exception instanceof I18nEmailMgtClientException) {
Expand Down
Loading