Commit ec2e072f authored by Daniel Salzman's avatar Daniel Salzman

Simplify duplicate error message if invalid configuration

parent 4993ea0d
......@@ -542,8 +542,8 @@ int main(int argc, char **argv)
/* Import the configuration file. */
ret = conf_import(new_conf, config_fn, true);
if (ret != KNOT_EOK) {
log_fatal("failed to load configuration file '%s' (%s)",
config_fn, knot_strerror(ret));
log_fatal("failed to load configuration file (%s)",
knot_strerror(ret));
rc = 1;
goto exit;
}
......
......@@ -347,8 +347,8 @@ int main(int argc, char **argv)
/* Import the configuration file. */
ret = conf_import(new_conf, config_fn, true);
if (ret != KNOT_EOK) {
log_fatal("failed to load configuration file '%s' (%s)",
config_fn, knot_strerror(ret));
log_fatal("failed to load configuration file (%s)",
knot_strerror(ret));
conf_free(new_conf, false);
return EXIT_FAILURE;
}
......
......@@ -504,8 +504,8 @@ int server_reload(server_t *server, const char *cf)
/* Import the configuration file. */
ret = conf_import(new_conf, cf, true);
if (ret != KNOT_EOK) {
log_fatal("failed to load configuration file '%s' (%s)",
cf, knot_strerror(ret));
log_fatal("failed to load configuration file (%s)",
knot_strerror(ret));
conf_free(new_conf, false);
return EXIT_FAILURE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment