Home
last modified time | relevance | path

Searched refs:errstr (Results 1 – 15 of 15) sorted by relevance

/redis-3.2.3/deps/hiredis/examples/
H A Dexample-libev.c21 printf("Error: %s\n", c->errstr); in connectCallback()
29 printf("Error: %s\n", c->errstr); in disconnectCallback()
41 printf("Error: %s\n", c->errstr); in main()
H A Dexample-libevent.c21 printf("Error: %s\n", c->errstr); in connectCallback()
29 printf("Error: %s\n", c->errstr); in disconnectCallback()
42 printf("Error: %s\n", c->errstr); in main()
H A Dexample-libuv.c21 printf("Error: %s\n", c->errstr); in connectCallback()
29 printf("Error: %s\n", c->errstr); in disconnectCallback()
42 printf("Error: %s\n", c->errstr); in main()
H A Dexample-ae.c24 printf("Error: %s\n", c->errstr); in connectCallback()
34 printf("Error: %s\n", c->errstr); in disconnectCallback()
49 printf("Error: %s\n", c->errstr); in main()
H A Dexample.c18 printf("Connection error: %s\n", c->errstr); in main()
/redis-3.2.3/deps/hiredis/
H A Dtest.c109 printf("Connection error: %s\n", c->errstr); in connect()
253 strcasecmp(reader->errstr,"Protocol error, got \"@\" as reply type byte") == 0); in test_reply_reader()
265 strcasecmp(reader->errstr,"Protocol error, got \"@\" as reply type byte") == 0); in test_reply_reader()
277 strncasecmp(reader->errstr,"No support for",14) == 0); in test_reply_reader()
327 (strcmp(c->errstr,"Name or service not known") == 0 || in test_blocking_connection_errors()
328 strcmp(c->errstr,"Can't resolve: idontexist.local") == 0 || in test_blocking_connection_errors()
329 strcmp(c->errstr,"nodename nor servname provided, or not known") == 0 || in test_blocking_connection_errors()
330 strcmp(c->errstr,"No address associated with hostname") == 0 || in test_blocking_connection_errors()
331 strcmp(c->errstr,"no address associated with name") == 0)); in test_blocking_connection_errors()
337 strcmp(c->errstr,"Connection refused") == 0); in test_blocking_connection_errors()
[all …]
H A Dhiredis.h127 char errstr[128]; /* String representation of error when applicable */ member
155 #define redisReplyReaderGetError(_r) (((redisReader*)(_r))->errstr)
168 char errstr[128]; /* String representation of error when applicable */ member
H A Dhiredis.c207 len = len < (sizeof(r->errstr)-1) ? len : (sizeof(r->errstr)-1); in __redisReaderSetError()
208 memcpy(r->errstr,str,len); in __redisReaderSetError()
209 r->errstr[len] = '\0'; in __redisReaderSetError()
564 r->errstr[0] = '\0'; in redisReaderCreate()
979 len = len < (sizeof(c->errstr)-1) ? len : (sizeof(c->errstr)-1); in __redisSetError()
980 memcpy(c->errstr,str,len); in __redisSetError()
981 c->errstr[len] = '\0'; in __redisSetError()
985 strerror_r(errno,c->errstr,sizeof(c->errstr)); in __redisSetError()
997 c->errstr[0] = '\0'; in redisContextInit()
1155 __redisSetError(c,c->reader->err,c->reader->errstr); in redisBufferRead()
[all …]
H A Dasync.c120 ac->errstr = NULL; in redisAsyncInitialize()
147 ac->errstr = c->errstr; in __redisAsyncCopyError()
445 snprintf(c->errstr,sizeof(c->errstr),"%s",((redisReply*)reply)->str); in redisProcessCallbacks()
H A Dasync.h67 char *errstr; member
H A DREADME.md43 an error state. The field `errstr` will contain a string with a description of
50 printf("Error: %s\n", c->errstr);
223 In every case, the `errstr` field in the context will be set to hold a string representation
242 printf("Error: %s\n", c->errstr);
/redis-3.2.3/src/
H A Ddebug.c485 sds errstr = sdsnewlen("-",1); in debugCommand() local
487 errstr = sdscatsds(errstr,c->argv[2]->ptr); in debugCommand()
488 errstr = sdsmapchars(errstr,"\n\r"," ",2); /* no newlines in errors. */ in debugCommand()
489 errstr = sdscatlen(errstr,"\r\n",2); in debugCommand()
490 addReplySds(c,errstr); in debugCommand()
H A Dredis-benchmark.c202 fprintf(stderr,"Error: %s\n",c->context->errstr); in readHandler()
207 fprintf(stderr,"Error: %s\n",c->context->errstr); in readHandler()
328 fprintf(stderr,"%s:%d: %s\n",config.hostip,config.hostport,c->context->errstr); in createClient()
330 fprintf(stderr,"%s: %s\n",config.hostsocket,c->context->errstr); in createClient()
H A Dredis-cli.c523 fprintf(stderr,"%s:%d: %s\n",config.hostip,config.hostport,context->errstr); in cliConnect()
525 fprintf(stderr,"%s: %s\n",config.hostsocket,context->errstr); in cliConnect()
548 fprintf(stderr,"Error: %s\n",context->errstr); in cliPrintContextError()
957 fprintf(stderr, "Error: %s\n", c->errstr); in reconnectingRedisCommand()
2012 keys->element[i]->str, context->err, context->errstr); in getKeyTypes()
2053 keys->element[i]->str, context->err, context->errstr); in getKeySizes()
H A Dsentinel.c1917 link->cc->errstr); in sentinelReconnectInstance()
1940 link->pc->errstr); in sentinelReconnectInstance()