summaryrefslogtreecommitdiffstats
path: root/catalog-model
diff options
context:
space:
mode:
authorJvD_Ericsson <jeff.van.dam@est.tech>2022-12-07 13:19:37 +0000
committerJeff van Dam <jeff.van.dam@est.tech>2022-12-07 13:52:29 +0000
commit2d52af9dad95b03ea8ab2b91529519965bf78c1f (patch)
tree2a072a9fedb55a6893649d4055ed4c6bc4ab4e52 /catalog-model
parent1bfa5c69512edd6afc17244786bd53ccbe1c7a7e (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
Diffstat (limited to 'catalog-model')
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/constraints/InRangeConstraint.java2
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));
}