Index: screenshot-xfer.c
===================================================================
RCS file: /cvs/gnome/gnome-utils/gnome-screenshot/screenshot-xfer.c,v
retrieving revision 1.4
diff -u -u -p -r1.4 screenshot-xfer.c
--- screenshot-xfer.c	21 Dec 2005 13:34:20 -0000	1.4
+++ screenshot-xfer.c	16 Jan 2006 11:28:30 -0000
@@ -151,14 +151,38 @@ static gint
 handle_transfer_vfs_error (GnomeVFSXferProgressInfo *progress_info,
 			   TransferInfo             *transfer_info)
 {
-  g_print ("handle_transfer_vfs_error!\n");
+  GtkWidget *dialog;
+  gchar *detail;
+
+  /* remove the progress dialog - if present */
   remove_timeout (transfer_info);
+  
   if (transfer_info->progress_dialog)
     {
       gtk_widget_destroy (transfer_info->progress_dialog);
       transfer_info->progress_dialog = NULL;
     }
+
+  /* Show the user what happened */
+  dialog = gtk_message_dialog_new (GTK_WINDOW (transfer_info_get_parent (transfer_info)),
+				   GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL,
+				   GTK_MESSAGE_ERROR,
+				   GTK_BUTTONS_OK,
+				   _("Error while saving the screenshot"));
+  
+  detail = g_strdup_printf ("GNOME-VFS Error: %s",
+		  	    gnome_vfs_result_to_string (progress_info->vfs_status));
+  gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
+		  			    "%s", detail);
+  g_free (detail);
+
+  gtk_dialog_run (GTK_DIALOG (dialog));
+
+  gtk_widget_destroy (dialog);
+
+  /* then exit gracefully */
   gtk_main_quit ();
+  
   return 1;
 }
 
