DATAREDIS-771 - Polishing.

Improve error message for unsupported PartTree keywords.

Original Pull Request: #342
This commit is contained in:
Mark Paluch
2018-05-15 15:15:21 +02:00
committed by Christoph Strobl
parent d73a0e1677
commit 86606be850
2 changed files with 3 additions and 1 deletions

View File

@@ -70,7 +70,7 @@ public class RedisQueryCreator extends AbstractQueryCreator<KeyValueQuery<RedisO
sink.near(getNearPath(part, iterator));
break;
default:
throw new IllegalArgumentException(part.getType() + "is not supported for redis query derivation");
throw new IllegalArgumentException(String.format("%s is not supported for Redis query derivation!", part.getType()));
}
return sink;