diff options
author | JvD_Ericsson <jeff.van.dam@est.tech> | 2022-12-07 13:19:37 +0000 |
---|---|---|
committer | Jeff van Dam <jeff.van.dam@est.tech> | 2022-12-07 13:52:29 +0000 |
commit | 2d52af9dad95b03ea8ab2b91529519965bf78c1f (patch) | |
tree | 2a072a9fedb55a6893649d4055ed4c6bc4ab4e52 | |
parent | 1bfa5c69512edd6afc17244786bd53ccbe1c7a7e (diff) |
Fix in_range constraint validation gives unhelpful error message
Issue-ID: SDC-4293
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: If31fb515987c2e6c040e4fbf1d00ca4f669ed525
-rw-r--r-- | catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/constraints/InRangeConstraint.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/constraints/InRangeConstraint.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/constraints/InRangeConstraint.java index 2256f7d311..2567cec772 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/constraints/InRangeConstraint.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/constraints/InRangeConstraint.java @@ -130,7 +130,7 @@ public class InRangeConstraint extends AbstractPropertyConstraint { @Override public String getErrorMessage(ToscaType toscaType, ConstraintFunctionalException e, String propertyName) { - return getErrorMessage(toscaType, e, propertyName, "%s property value must be between >= [%s] and <= [%s]", String.valueOf(min), + return getErrorMessage(toscaType, e, propertyName, "%s property value must be in a range of %s", String.valueOf(min), String.valueOf(max)); } |