summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/generate.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/generate.c b/tools/generate.c
index 926ffcac..f35893c3 100644
--- a/tools/generate.c
+++ b/tools/generate.c
@@ -60,7 +60,12 @@ main (int argc, char *argv[])
context = g_option_context_new ("");
g_option_context_add_main_entries (context, options, NULL);
- g_option_context_parse (context, &argc, &argv, &error);
+ if (!g_option_context_parse (context, &argc, &argv, &error))
+ {
+ g_fprintf (stderr, "failed to parse: %s\n", error->message);
+ g_error_free (error);
+ return 1;
+ }
if (!input)
{