[gnome-software/wip/hughsie/upgrades: 4/4] trivial: Allow overwriting the error if a state change has not taken place
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/upgrades: 4/4] trivial: Allow overwriting the error if a state change has not taken place
- Date: Fri, 22 Apr 2016 12:12:21 +0000 (UTC)
commit 0b67afb17c519282e421e9b3a861b83959259e05
Author: Richard Hughes <richard hughsie com>
Date: Fri Apr 22 13:11:29 2016 +0100
trivial: Allow overwriting the error if a state change has not taken place
src/gs-plugin-loader.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index d6774bf..074e51a 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -730,8 +730,7 @@ gs_plugin_loader_set_app_error (GsApp *app, GError *error)
return;
/* random, non-plugin error domains are never shown to the user */
- if (error->domain == GS_PLUGIN_ERROR &&
- gs_app_get_last_error (app) == NULL) {
+ if (error->domain == GS_PLUGIN_ERROR) {
g_debug ("saving error for %s: %s",
gs_app_get_id (app),
error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]