[file-roller] process: show the ignored error when DEBUG is active



commit 109cc79b4fe662469f47e95c08529a47f6fa2acc
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Nov 26 23:40:19 2012 +0100

    process: show the ignored error when DEBUG is active

 src/fr-process.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-process.c b/src/fr-process.c
index 3ecfb37..296d1e6 100644
--- a/src/fr-process.c
+++ b/src/fr-process.c
@@ -812,7 +812,17 @@ check_child (gpointer data)
 		}
 	}
 
-	if (info->ignore_error) {
+	if (info->ignore_error && (exec_data->error != NULL)) {
+#ifdef DEBUG
+			{
+				GList *scan;
+
+				g_print ("** ERROR **\n");
+				g_print ("%s\n", exec_data->error->gerror->message);
+				for (scan = process->err.raw; scan; scan = scan->next)
+					g_print ("%s\n", (char *)scan->data);
+			}
+#endif
 		fr_clear_error (&exec_data->error);
 		debug (DEBUG_INFO, "[error ignored]\n");
 	}



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