]> git.tue.mpg.de Git - paraslash.git/commitdiff
gui: Don't fail silently on config file errors.
authorAndre Noll <maan@systemlinux.org>
Tue, 18 Jan 2011 20:23:50 +0000 (21:23 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 11 Feb 2011 10:25:07 +0000 (11:25 +0100)
We need to set ->print_errors non-zero in order to get the error message
from gengetopt.

gui.c

diff --git a/gui.c b/gui.c
index 5ac1333b1c55ae969bfcf29d453ceed053a5ffc6..fe580864faf7f9c9f3092bdb0d637b183f9e9400 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -1407,7 +1407,8 @@ int main(int argc, char *argv[])
                        .override = 0,
                        .initialize = 0,
                        .check_required = 0,
-                       .check_ambiguity = 0
+                       .check_ambiguity = 0,
+                       .print_errors = 1,
                };
                gui_cmdline_parser_config_file(cf, &conf, &params);
        }