From f848e286bd8dac72e6bdebf97333c4ad3a3a4891 Mon Sep 17 00:00:00 2001 From: volker Date: Fri, 25 Sep 2009 12:57:51 +0000 Subject: additional debug output git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1045 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- lcd4linux.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lcd4linux.c') diff --git a/lcd4linux.c b/lcd4linux.c index dda62cf..79941ca 100644 --- a/lcd4linux.c +++ b/lcd4linux.c @@ -289,11 +289,15 @@ int main(int argc, char *argv[]) info("invoked without full path; restart may not work!"); } - if (cfg_init(cfg) == -1) + if (cfg_init(cfg) == -1) { + error("Error reading configuration. Exit!"); exit(1); + } - if (plugin_init() == -1) + if (plugin_init() == -1) { + error("Error initializing plugins. Exit!"); exit(1); + } display = cfg_get(NULL, "Display", NULL); if (display == NULL || *display == '\0') { @@ -344,6 +348,7 @@ int main(int argc, char *argv[]) debug("initializing driver %s", driver); if (drv_init(section, driver, quiet) == -1) { + error("Error initializing driver %s: Exit!", driver); pid_exit(pidfile); exit(1); } -- cgit v1.2.3