config_map: adjust error message when just one property is allowed
@@ -176,9 +176,14 @@ static flb_sds_t helper_map_options(struct mk_list *map)
if (head->next != map) {
tmp = flb_sds_printf(&buf, "%s, ", m->name);
}
+ else {
+ if (mk_list_size(map) == 1) {
+ tmp = flb_sds_printf(&buf, "%s.", m->name);
+ }
else {
tmp = flb_sds_printf(&buf, "and %s.", m->name);
}
+ }
if (!tmp) {
flb_errno();
