From: Marc Fournier Date: Mon, 7 Oct 2013 21:11:44 +0000 (+0200) Subject: fix error message in target_{replace,set} X-Git-Tag: collectd-5.4.1~3^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dcd94cf362b78541cfd1c5b7c80a04c415beb88;p=thirdparty%2Fcollectd.git fix error message in target_{replace,set} Remove erroneous hint that "Type" can be altered. Also correct a small typo. Thanks to @mjulian for pointing that out ! Fixes GH#448 --- diff --git a/src/target_replace.c b/src/target_replace.c index 9a9affb4d..1d7af5c35 100644 --- a/src/target_replace.c +++ b/src/target_replace.c @@ -296,8 +296,8 @@ static int tr_create (const oconfig_item_t *ci, void **user_data) /* {{{ */ /* && (data->type == NULL) */ && (data->type_instance == NULL)) { - ERROR ("Target `replace': You need to set at lease one of `Host', " - "`Plugin', `PluginInstance', `Type', or `TypeInstance'."); + ERROR ("Target `replace': You need to set at least one of `Host', " + "`Plugin', `PluginInstance' or `TypeInstance'."); status = -1; } diff --git a/src/target_set.c b/src/target_set.c index 8a014c3cd..2fb9cee56 100644 --- a/src/target_set.c +++ b/src/target_set.c @@ -171,8 +171,8 @@ static int ts_create (const oconfig_item_t *ci, void **user_data) /* {{{ */ /* && (data->type == NULL) */ && (data->type_instance == NULL)) { - ERROR ("Target `set': You need to set at lease one of `Host', " - "`Plugin', `PluginInstance', `Type', or `TypeInstance'."); + ERROR ("Target `set': You need to set at least one of `Host', " + "`Plugin', `PluginInstance' or `TypeInstance'."); status = -1; }