From: Pavel Rochnyack Date: Sun, 17 Jun 2018 10:22:10 +0000 (+0700) Subject: redis plugin: Report query errors X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=251897b1633940104c95945d3dd29981e43a0cbf;p=collectd.git redis plugin: Report query errors --- diff --git a/src/redis.c b/src/redis.c index f4de3800..ca17e299 100644 --- a/src/redis.c +++ b/src/redis.c @@ -363,6 +363,10 @@ static int redis_handle_query(redisContext *rh, redis_node_t *rn, return -1; } break; + case REDIS_REPLY_ERROR: + WARNING("redis plugin: Query `%s' failed: %s.", rq->query, rr->str); + freeReplyObject(rr); + return -1; case REDIS_REPLY_ARRAY: WARNING("redis plugin: Query `%s' should return string or integer. Arrays " "are not supported.",