From 2aeca51fbed4e7abe98f5930a2ab1863e7419c4a Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 10 Jun 2008 16:20:02 +0200 Subject: [PATCH] Print an error message if midori fails to run --- midori/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/midori/main.c b/midori/main.c index f88d0b15..9726f009 100644 --- a/midori/main.c +++ b/midori/main.c @@ -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; }