From: Fᴀʙɪᴇɴ Wᴇʀɴʟɪ Date: Fri, 28 Jun 2019 09:01:33 +0000 (+0200) Subject: better user feedback X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d75591c9762f93d8656846fd2796fdb775b1c69f;p=collectd.git better user feedback Change-Id: Iae7c3208024372485fd0901898cbe2e178610082 --- diff --git a/src/daemon/configfile.c b/src/daemon/configfile.c index c500d3ee..cc230912 100644 --- a/src/daemon/configfile.c +++ b/src/daemon/configfile.c @@ -413,9 +413,10 @@ static int dispatch_block_plugin(oconfig_item_t *ci) { /* Hm, no complex plugin found. Dispatch the values one by one */ for (int i = 0, ret = 0; i < ci->children_num; i++) { if (ci->children[i].children == NULL) { - ret = dispatch_value_plugin(name, ci->children + i); + oconfig_item_t *child = ci -> children + i; + ret = dispatch_value_plugin(name, child); if (ret != 0) { - ERROR("dispatch for plugin %s returned non-zero code : %i", name, ret); + ERROR("Plugin %s failed to handle option %s, return code: %i", name, child -> key, ret); return ret; } } else {