The 'err' object is expected to start with -ERRORCODE and end with \r\n. * Unlike addReplyErrorSds and others alike which rely on addReplyErrorLength. */
| 477 | /* The 'err' object is expected to start with -ERRORCODE and end with \r\n. |
| 478 | * Unlike addReplyErrorSds and others alike which rely on addReplyErrorLength. */ |
| 479 | void addReplyErrorObject(client *c, robj *err) { |
| 480 | addReply(c, err); |
| 481 | afterErrorReply(c, err->ptr, sdslen(err->ptr)-2); /* Ignore trailing \r\n */ |
| 482 | } |
| 483 | |
| 484 | /* See addReplyErrorLength for expectations from the input string. */ |
| 485 | void addReplyError(client *c, const char *err) { |
no test coverage detected