Commit bb7546c9 authored by antirez's avatar antirez
Browse files

RESP3: varbatim handling for other redis-cli outputs.

parent 5e399d5d
......@@ -968,6 +968,7 @@ static sds cliFormatReplyRaw(redisReply *r) {
break;
case REDIS_REPLY_STATUS:
case REDIS_REPLY_STRING:
case REDIS_REPLY_VERB:
if (r->type == REDIS_REPLY_STATUS && config.eval_ldb) {
/* The Lua debugger replies with arrays of simple (status)
* strings. We colorize the output for more fun if this
......@@ -1021,6 +1022,7 @@ static sds cliFormatReplyCSV(redisReply *r) {
out = sdscatprintf(out,"%lld",r->integer);
break;
case REDIS_REPLY_STRING:
case REDIS_REPLY_VERB:
out = sdscatrepr(out,r->str,r->len);
break;
case REDIS_REPLY_NIL:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment