| 99 | } |
| 100 | |
| 101 | static void __redisReaderSetErrorProtocolByte(redisReader *r, char byte) { |
| 102 | char cbuf[8], sbuf[128]; |
| 103 | |
| 104 | chrtos(cbuf,sizeof(cbuf),byte); |
| 105 | snprintf(sbuf,sizeof(sbuf), |
| 106 | "Protocol error, got %s as reply type byte", cbuf); |
| 107 | __redisReaderSetError(r,REDIS_ERR_PROTOCOL,sbuf); |
| 108 | } |
| 109 | |
| 110 | static void __redisReaderSetErrorOOM(redisReader *r) { |
| 111 | __redisReaderSetError(r,REDIS_ERR_OOM,"Out of memory"); |
no test coverage detected