MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / addReplyErrorObject

Function addReplyErrorObject

src/networking.cpp:610–613  ·  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

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

Callers 15

SentReplyOnKeyMissFunction · 0.85
getFlushCommandFlagsFunction · 0.85
scanGenericCommandFunction · 0.85
shutdownCommandFunction · 0.85
moveCommandFunction · 0.85
copyCommandFunction · 0.85
clusterCommandFunction · 0.85
restoreCommandFunction · 0.85
migrateCommandFunction · 0.85
execCommandFunction · 0.85
sortCommandFunction · 0.85
hrandfieldCommandFunction · 0.85

Calls 4

addReplyFunction · 0.85
afterErrorReplyFunction · 0.85
szFromObjFunction · 0.85
sdslenFunction · 0.85

Tested by

no test coverage detected