dschneider-pivotal commented on a change in pull request #5146: URL: https://github.com/apache/geode/pull/5146#discussion_r429352356
########## File path: geode-redis/src/main/java/org/apache/geode/redis/internal/KeyRegistrar.java ########## @@ -201,11 +172,7 @@ private void throwDataTypeException(ByteArrayWrapper key, RedisData data) { } private void throwDataTypeException(ByteArrayWrapper key, RedisDataType dataType) { - if (RedisDataType.REDIS_PROTECTED.equals(dataType)) { - throw new RedisDataTypeMismatchException("The key name \"" + key + "\" is protected"); - } else { - throw new RedisDataTypeMismatchException( - RedisConstants.ERROR_WRONG_TYPE); - } + throw new RedisDataTypeMismatchException( Review comment: done ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org