From 6dcd94cf362b78541cfd1c5b7c80a04c415beb88 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Mon, 7 Oct 2013 23:11:44 +0200 Subject: [PATCH] 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 --- src/target_replace.c | 4 ++-- src/target_set.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.11.0