Treat any other type of reply as an error

This commit is contained in:
Jonathan Leibiusky
2010-08-04 20:57:20 -03:00
parent 1df234153b
commit c4e5d0b89b

View File

@@ -91,8 +91,10 @@ public class Protocol {
return processInteger(is);
} else if (b == DOLLAR_BYTE) {
return processBulkReply(is);
} else {
} else if (b == PLUS_BYTE) {
return processStatusCodeReply(is);
} else {
throw new JedisException("Unknown reply");
}
} catch (IOException e) {
throw new JedisException(e);