diff options
Diffstat (limited to 'src/ck.c')
-rw-r--r-- | src/ck.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -34,6 +34,8 @@ #include "ckutil.h" #include "ckerrlog.h" +ERRLOG(main); + int main(int argc, char *argv[]) { initialize_errlog(argc, argv); UserOpt opt; @@ -47,7 +49,7 @@ int main(int argc, char *argv[]) { /* If the db doesn't exist ck is not initialized in the config * location specified in opt */ if (!db_exists(&opt)) { - printf("ck is not initialized in %s.\nRun ck init first.\n", opt.confDir); + ERR("ck is not initialized in %s.\nRun ck init first.\n", opt.confDir); goto error; } /* Finally parse the config file and exit on error */ |