Skip to content
Snippets Groups Projects
Commit 33d71839 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

knotc now exits when it fails to parse config file.

parent 610ea069
No related branches found
No related tags found
No related merge requests found
......@@ -430,7 +430,6 @@ int main(int argc, char **argv)
// Initialize log (no output)
log_init();
log_levels_set(LOGT_SYSLOG, LOG_ANY, 0);
log_levels_set(LOGT_STDERR, LOG_ANY, 0);
log_levels_set(LOGT_STDOUT, LOG_ANY, 0);
// Find implicit configuration file
......@@ -444,6 +443,8 @@ int main(int argc, char **argv)
if (conf_open(config_fn) != 0) {
fprintf(stderr, "Failed to parse configuration '%s'.\n",
config_fn);
free(default_fn);
return 1;
}
// Free default config filename if exists
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment