[cheese] window: print detailed error message if show_uri fails



commit 1d12ce022f8182c728f8cd952693266331f2a434
Author: Filippo Argiolas <filippo argiolas gmail com>
Date:   Wed May 13 19:57:36 2009 +0200

    window: print detailed error message if show_uri fails
---
 src/cheese-window.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/cheese-window.c b/src/cheese-window.c
index 3a752fa..04fbf94 100644
--- a/src/cheese-window.c
+++ b/src/cheese-window.c
@@ -476,7 +476,9 @@ cheese_window_cmd_open (GtkWidget *widget, CheeseWindow *cheese_window)
     dialog = gtk_message_dialog_new (GTK_WINDOW (cheese_window->window),
                                      GTK_DIALOG_DESTROY_WITH_PARENT,
                                      GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
-                                     _("Failed to launch program to show:\n%s"), uri);
+                                     _("Failed to launch program to show:\n"
+                                       "%s\n"
+                                       "%s"), uri, error->message);
     gtk_dialog_run (GTK_DIALOG (dialog));
     gtk_widget_destroy (dialog);
     g_error_free (error);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]