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
1 changed files with 4 additions and 0 deletions

View File

@ -248,6 +248,10 @@ main (int argc, char** argv)
if (!gtk_init_with_args (&argc, &argv, _("[URL]"), entries,
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);
return 1;
}