]> spindle.queued.net Git - midori/commitdiff
Print an error message if midori fails to run
authorChristian Dywan <christian@twotoasts.de>
Tue, 10 Jun 2008 14:20:02 +0000 (16:20 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 10 Jun 2008 14:20:02 +0000 (16:20 +0200)
midori/main.c

index f88d0b15a81c054f1383d9fac4881b352a3e4be7..9726f009d95570bcfc8b35fedcdce2b2bdbf6c1d 100644 (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;
     }