diff --git a/src/main/java/org/springframework/cloud/gateway/config/PredicateDefinition.java b/src/main/java/org/springframework/cloud/gateway/config/PredicateDefinition.java index 9afdfe1e9..2e477aaaa 100644 --- a/src/main/java/org/springframework/cloud/gateway/config/PredicateDefinition.java +++ b/src/main/java/org/springframework/cloud/gateway/config/PredicateDefinition.java @@ -25,7 +25,7 @@ public class PredicateDefinition { public PredicateDefinition(String text) { int eqIdx = text.indexOf("="); if (eqIdx <= 0) { - throw new ValidationException("Unable to parse Predicate text '" + text + "'" + + throw new ValidationException("Unable to parse PredicateDefinition text '" + text + "'" + ", must be of the form name=value"); } setName(text.substring(0, eqIdx)); diff --git a/src/main/java/org/springframework/cloud/gateway/config/Route.java b/src/main/java/org/springframework/cloud/gateway/config/Route.java index 47568b474..860f5aa9c 100644 --- a/src/main/java/org/springframework/cloud/gateway/config/Route.java +++ b/src/main/java/org/springframework/cloud/gateway/config/Route.java @@ -32,7 +32,7 @@ public class Route { public Route(String text) { int eqIdx = text.indexOf("="); if (eqIdx <= 0) { - throw new ValidationException("Unable to parse Predicate text '" + text + "'" + + throw new ValidationException("Unable to parse Route text '" + text + "'" + ", must be of the form name=value"); }