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: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=6dcd94cf362b78541cfd1c5b7c80a04c415beb88 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 9a9affb4..1d7af5c3 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 8a014c3c..2fb9cee5 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; }