The 'err' object is expected to start with -ERRORCODE and end with \r\n. * Unlike addReplyErrorSds and others alike which rely on addReplyErrorLength. */
| 608 | /* The 'err' object is expected to start with -ERRORCODE and end with \r\n. |
| 609 | * Unlike addReplyErrorSds and others alike which rely on addReplyErrorLength. */ |
| 610 | void addReplyErrorObject(client *c, robj *err, int severity) { |
| 611 | addReply(c, err); |
| 612 | afterErrorReply(c, szFromObj(err), sdslen(szFromObj(err))-2, severity); /* Ignore trailing \r\n */ |
| 613 | } |
| 614 | |
| 615 | /* See addReplyErrorLength for expectations from the input string. */ |
| 616 | void addReplyError(client *c, const char *err) { |
no test coverage detected