Skip to content
Prev Previous commit
Next Next commit
fix: use correct property names in validation error message
  • Loading branch information
padamstx committed Oct 25, 2021
commit 629564bb0e7ea84e719b4da7a63e391ced5736e3
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public void validate() {
// At most one of iamProfileCrn or iamProfileId may be specified.
if (StringUtils.isNotEmpty(getIamProfileCrn()) && StringUtils.isNotEmpty(getIamProfileId())) {
throw new IllegalArgumentException(
String.format(ERRORMSG_ATMOST_ONE_PROP_ERROR, "iamProfileName", "iamProfileId"));
String.format(ERRORMSG_ATMOST_ONE_PROP_ERROR, "iamProfileCrn", "iamProfileId"));
}
}

Expand Down