aboutsummaryrefslogtreecommitdiffstats
path: root/src/ck.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ck.c')
-rw-r--r--src/ck.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ck.c b/src/ck.c
index a350a5f..8aeb6d1 100644
--- a/src/ck.c
+++ b/src/ck.c
@@ -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 */