MCPcopy Create free account
hub / github.com/F-Stack/f-stack / addReplyErrorObject

Function addReplyErrorObject

app/redis-6.2.6/src/networking.c:479–482  ·  view source on GitHub ↗

The 'err' object is expected to start with -ERRORCODE and end with \r\n. * Unlike addReplyErrorSds and others alike which rely on addReplyErrorLength. */

Source from the content-addressed store, hash-verified

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. */
479void 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. */
485void addReplyError(client *c, const char *err) {

Callers 15

evalGenericCommandFunction · 0.85
evalShaCommandFunction · 0.85
sentinelInfoCommandFunction · 0.85
hrandfieldCommandFunction · 0.85
replconfCommandFunction · 0.85
failoverCommandFunction · 0.85
geoaddCommandFunction · 0.85
georadiusGenericFunction · 0.85
geodistCommandFunction · 0.85
stralgoCommandFunction · 0.85
stralgoLCSFunction · 0.85

Calls 3

addReplyFunction · 0.85
afterErrorReplyFunction · 0.85
sdslenFunction · 0.85

Tested by

no test coverage detected