Print an error message if midori fails to run
This commit is contained in:
parent
074d239b3c
commit
2aeca51fbe
1 changed files with 4 additions and 0 deletions
|
@ -248,6 +248,10 @@ main (int argc, char** argv)
|
||||||
if (!gtk_init_with_args (&argc, &argv, _("[URL]"), entries,
|
if (!gtk_init_with_args (&argc, &argv, _("[URL]"), entries,
|
||||||
GETTEXT_PACKAGE, &error))
|
GETTEXT_PACKAGE, &error))
|
||||||
{
|
{
|
||||||
|
if (error->code == G_OPTION_ERROR_UNKNOWN_OPTION)
|
||||||
|
g_print ("%s - %s\n", _("midori"), _("Unknown argument."));
|
||||||
|
else
|
||||||
|
g_print ("%s - %s", _("midori"), _("Failed to setup interface."));
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue