Skip to content

Commit

Permalink
Merge pull request #2579 from devinbileck/update-change-param-validat…
Browse files Browse the repository at this point in the history
…or-error-messages

Update change param validator error messages
  • Loading branch information
ripcurlx committed Mar 25, 2019
2 parents 497e202 + 85fc633 commit 3491c40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,11 @@ private void validateBlockValue(int currentParamValueAsBlock, int inputValueAsBl
case PHASE_VOTE_REVEAL:
case PHASE_BREAK3:
if (isMainnet)
checkArgument(inputValueAsBlock >= 6, Res.get("validation.inputTooSmall", "5 blocks"));
checkArgument(inputValueAsBlock >= 6, Res.get("validation.inputToBeAtLeast", "6 blocks"));
break;
case PHASE_RESULT:
if (isMainnet)
checkArgument(inputValueAsBlock >= 1, Res.get("validation.inputTooSmall", "1 block"));
checkArgument(inputValueAsBlock >= 1, Res.get("validation.inputToBeAtLeast", "1 block"));
break;
}

Expand Down Expand Up @@ -288,7 +288,7 @@ void validationChange(double currentValue, double newValue, double min, double m
if (change < (1 / min)) {
double val = currentValue / min;
String value = getFormattedValue(param, val);
throw new ParamValidationException(ParamValidationException.ERROR.TOO_LOW, Res.get("validation.inputTooToBeAtLeast", value));
throw new ParamValidationException(ParamValidationException.ERROR.TOO_LOW, Res.get("validation.inputToBeAtLeast", value));
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/i18n/displayStrings.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2806,7 +2806,7 @@ validation.interacETransfer.invalidQuestion=Must contain only letters, numbers,
validation.interacETransfer.invalidAnswer=Must be one word and contain only letters, numbers, and/or the symbol -
validation.inputTooLarge=Input must not be larger than {0}
validation.inputTooSmall=Input has to be larger than {0}
validation.inputTooToBeAtLeast=Input has to be at least {0}
validation.inputToBeAtLeast=Input has to be at least {0}
validation.amountBelowDust=The amount below the dust limit of {0} is not allowed.
validation.length=Length must be between {0} and {1}
validation.pattern=Input must be of format: {0}
Expand Down

0 comments on commit 3491c40

Please sign in to comment.