diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/init.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -6,12 +6,19 @@ void kore_parent_configure(int, char **); static const char *database = "db"; -/* Let kore handle the default option parsing. */ void kore_parent_configure(int argc, char **argv) { - init_db(); + int err = 0; + kore_default_getopt(argc, argv); + + err = init_db(); + if (err != KORE_RESULT_OK) { + kore_log(LOG_ERR, "Error registering the database."); + // FIXME How to terminate? + exit(1); + } } int |