Blob Blame Raw
From 9dbdf3d6aad84a382cffb689262d9ac841df1758 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard@hughsie.com>
Date: Wed, 3 Oct 2012 14:36:32 +0100
Subject: [PATCH 1/8] glib: Ensure remote error is stripped before showing it
 to the user

This prevents showing the user errors like:

GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._pk_5ftransaction_5ferror.Code14

Resolves half of https://bugzilla.redhat.com/show_bug.cgi?id=862333
---
 lib/packagekit-glib2/pk-client.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/packagekit-glib2/pk-client.c b/lib/packagekit-glib2/pk-client.c
index 8a5f311..1a55757 100644
--- a/lib/packagekit-glib2/pk-client.c
+++ b/lib/packagekit-glib2/pk-client.c
@@ -264,6 +264,7 @@ pk_client_fixup_dbus_error (GError *error)
 		error->code = PK_CLIENT_ERROR_NOT_SUPPORTED;
 		goto out;
 	}
+	g_dbus_error_strip_remote_error (error);
 	g_warning ("couldn't parse execption '%s', please report", name);
 out:
 	/* hardcode domain */
-- 
1.7.12