mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
parent
58f79e2ff4
commit
78211aaaaf
@ -2024,8 +2024,13 @@ static void getKeyTypes(redisReply *keys, int *types) {
|
|||||||
keys->element[i]->str, context->err, context->errstr);
|
keys->element[i]->str, context->err, context->errstr);
|
||||||
exit(1);
|
exit(1);
|
||||||
} else if(reply->type != REDIS_REPLY_STATUS) {
|
} else if(reply->type != REDIS_REPLY_STATUS) {
|
||||||
fprintf(stderr, "Invalid reply type (%d) for TYPE on key '%s'!\n",
|
if(reply->type == REDIS_REPLY_ERROR) {
|
||||||
|
fprintf(stderr, "TYPE returned an error: %s\n", reply->str);
|
||||||
|
} else {
|
||||||
|
fprintf(stderr,
|
||||||
|
"Invalid reply type (%d) for TYPE on key '%s'!\n",
|
||||||
reply->type, keys->element[i]->str);
|
reply->type, keys->element[i]->str);
|
||||||
|
}
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user