From 2d52af9dad95b03ea8ab2b91529519965bf78c1f Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Wed, 7 Dec 2022 13:19:37 +0000 Subject: Fix in_range constraint validation gives unhelpful error message Issue-ID: SDC-4293 Signed-off-by: JvD_Ericsson Change-Id: If31fb515987c2e6c040e4fbf1d00ca4f669ed525 --- .../org/openecomp/sdc/be/model/tosca/constraints/InRangeConstraint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-model/src/main') 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)); } -- cgit 1.2.3-korg