audioc: Print config file errors.
authorAndre Noll <maan@systemlinux.org>
Sun, 7 Apr 2013 01:05:56 +0000 (01:05 +0000)
committerAndre Noll <maan@systemlinux.org>
Thu, 13 Jun 2013 16:29:02 +0000 (18:29 +0200)
Currently para_audioc fails silently if the config file contains
errors. This patch makes it print a proper error message in this case.

audioc.c

index 74fb11c..42b4628 100644 (file)
--- a/audioc.c
+++ b/audioc.c
@@ -294,7 +294,9 @@ int main(int argc, char *argv[])
                        .override = 0,
                        .initialize = 0,
                        .check_required = 0,
-                       .check_ambiguity = 0
+                       .check_ambiguity = 0,
+                       .print_errors = 1,
+
                };
                ret = audioc_cmdline_parser_config_file(cf, &conf, &params);
                free(cf);