[gnome-software] trivial: Ensure we never show the unstripped error in the UI
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Ensure we never show the unstripped error in the UI
- Date: Wed, 7 Sep 2016 19:38:56 +0000 (UTC)
commit 8ff24a3875c0f8516062ade7bd9a3c263689b931
Author: Richard Hughes <richard hughsie com>
Date: Wed Sep 7 17:36:23 2016 +0100
trivial: Ensure we never show the unstripped error in the UI
src/gs-shell-updates.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index a0fc79e..366e0ec 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -29,6 +29,7 @@
#include "gs-common.h"
#include "gs-app-private.h"
#include "gs-app-row.h"
+#include "gs-plugin-private.h"
#include "gs-removal-dialog.h"
#include "gs-update-dialog.h"
#include "gs-update-list.h"
@@ -467,6 +468,7 @@ gs_shell_updates_get_updates_cb (GsPluginLoader *plugin_loader,
gs_shell_updates_clear_flag (self, GS_SHELL_UPDATES_FLAG_HAS_UPDATES);
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
g_warning ("updates-shell: failed to get updates: %s", error->message);
+ gs_plugin_error_strip_unique_id (error);
gtk_label_set_label (GTK_LABEL (self->label_updates_failed),
error->message);
gs_shell_updates_set_state (self,
@@ -701,6 +703,7 @@ gs_shell_updates_refresh_cb (GsPluginLoader *plugin_loader,
return;
}
g_warning ("failed to refresh: %s", error->message);
+ gs_plugin_error_strip_unique_id (error);
gtk_label_set_label (GTK_LABEL (self->label_updates_failed),
error->message);
gs_shell_updates_set_state (self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]