Clarify error message.

Avoid implying there's a configuration file if none was provided.
This commit is contained in:
Ian Barwick
2015-02-10 10:08:49 +09:00
parent 94bc5bdf80
commit 21730899da
3 changed files with 18 additions and 7 deletions

View File

@@ -24,7 +24,7 @@
static void tablespace_list_append(t_configuration_options *options, const char *arg);
void
bool
parse_config(const char *config_file, t_configuration_options * options)
{
char *s,
@@ -74,7 +74,7 @@ parse_config(const char *config_file, t_configuration_options * options)
log_notice(_("No configuration file provided and default file '%s' not found - "
"continuing with default values\n"),
config_file);
return;
return false;
}
/* Read next line */
@@ -187,6 +187,8 @@ parse_config(const char *config_file, t_configuration_options * options)
log_err(_("Reconnect intervals must be zero or greater. Check the configuration file.\n"));
exit(ERR_BAD_CONFIG);
}
return true;
}