config: set missing return value when reading parsers file
@@ -344,7 +344,7 @@ int flb_config_set_property(struct flb_config *config,
else if (!strncasecmp(key, FLB_CONF_STR_PARSERS_FILE, 32)) {
#ifdef FLB_HAVE_REGEX
tmp = flb_env_var_translate(config->env, v);
- flb_parser_conf_file(tmp, config);
+ ret = flb_parser_conf_file(tmp, config);
#endif
}
else {
@@ -377,7 +377,6 @@ int flb_config_set_property(struct flb_config *config,
if (tmp) {
flb_free(tmp);
}
- flb_error("config parameter error");
return -1;
}
return 0;
