mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +01:00
g-ir-compiler: message when arguments are wrong
Otherwise the error is "no input files" which is very confusing. https://bugzilla.gnome.org/show_bug.cgi?id=753160 Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
This commit is contained in:
parent
9c428a6a9e
commit
276bbf8f94
@ -153,6 +153,15 @@ main (int argc, char ** argv)
|
|||||||
g_option_context_parse (context, &argc, &argv, &error);
|
g_option_context_parse (context, &argc, &argv, &error);
|
||||||
g_option_context_free (context);
|
g_option_context_free (context);
|
||||||
|
|
||||||
|
if (error)
|
||||||
|
{
|
||||||
|
g_fprintf (stderr, "error parsing arguments: %s\n", error->message);
|
||||||
|
|
||||||
|
g_error_free (error);
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
logged_levels = G_LOG_LEVEL_MASK & ~(G_LOG_LEVEL_MESSAGE|G_LOG_LEVEL_DEBUG);
|
logged_levels = G_LOG_LEVEL_MASK & ~(G_LOG_LEVEL_MESSAGE|G_LOG_LEVEL_DEBUG);
|
||||||
if (debug)
|
if (debug)
|
||||||
logged_levels = logged_levels | G_LOG_LEVEL_DEBUG;
|
logged_levels = logged_levels | G_LOG_LEVEL_DEBUG;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user