From: Daniel Carl Date: Sun, 27 Jan 2013 17:24:17 +0000 (+0100) Subject: Fixed wrong error messages if configs where load from file. X-Git-Url: https://git.owens.tech/rss.xml/rss.xml/git?a=commitdiff_plain;h=29bf227d31ee3d0319394b353ee25e75fd6029da;p=vimb.git Fixed wrong error messages if configs where load from file. --- diff --git a/src/main.c b/src/main.c index ce103d9..bd152eb 100644 --- a/src/main.c +++ b/src/main.c @@ -571,7 +571,9 @@ static void vp_read_config(void) { /* load default config */ for (guint i = 0; default_config[i].command != NULL; i++) { - vp_process_input(default_config[i].command); + if (!vp_process_input(default_config[i].command)) { + fprintf(stderr, "Invalid default config: %s\n", default_config[i].command); + } } /* read config from config files */ @@ -587,7 +589,7 @@ static void vp_read_config(void) if (!g_ascii_isalpha(line[0])) { continue; } - if (vp_process_input(line)) { + if (!vp_process_input(line)) { fprintf(stderr, "Invalid config: %s\n", line); } }