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 5ac1333..fe58086 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);
        }