Print an error message if midori fails to run

This commit is contained in:
Christian Dywan 2008-06-10 16:20:02 +02:00
parent 074d239b3c
commit 2aeca51fbe

View file

@ -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;
} }