thesmallstar commented on a change in pull request #1079:
URL: https://github.com/apache/fineract/pull/1079#discussion_r446529515
##########
File path:
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanproduct/service/LoanProductWritePlatformServiceJpaRepositoryImpl.java
##########
@@ -357,9 +357,8 @@ private void handleDataIntegrityIssues(final JsonCommand
command, final Throwabl
throw new
PlatformDataIntegrityException("error.msg.product.loan.duplicate.short.name",
"Loan product with short name `" + shortName + "` already
exists", "shortName", shortName);
} else if (realCause.getMessage().contains("Duplicate entry")) {
- final Object[] args = null;
throw new
PlatformDataIntegrityException("error.msg.product.loan.duplicate.charge",
- "Loan product may only have one charge of each type.`",
"charges", args);
+ "Loan product may only have one charge of each type.`",
"charges");
Review comment:
Also adding the same in rest of the throws in the same function.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]