DATAREDIS-771 - Polishing.
Improve error message for unsupported PartTree keywords. Original Pull Request: #342
This commit is contained in:
committed by
Christoph Strobl
parent
d73a0e1677
commit
86606be850
@@ -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;
|
||||
|
||||
@@ -44,6 +44,8 @@ import org.springframework.data.repository.query.ParametersParameterAccessor;
|
||||
import org.springframework.data.repository.query.parser.PartTree;
|
||||
|
||||
/**
|
||||
* Unit tests for {@link RedisQueryCreator}.
|
||||
*
|
||||
* @author Christoph Strobl
|
||||
* @author Mark Paluch
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user