[gnome-software/wip/rancell/ubuntu-3-20-4: 38/50] Set error when org.freedesktop.fwupd has no service
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/rancell/ubuntu-3-20-4: 38/50] Set error when org.freedesktop.fwupd has no service
- Date: Sun, 18 Jun 2017 01:13:54 +0000 (UTC)
commit 5d486587b88124f1a3bb10b7e60b724044596d7c
Author: William Hua <william hua canonical com>
Date: Wed Mar 16 15:03:42 2016 -0400
Set error when org.freedesktop.fwupd has no service
src/plugins/gs-plugin-fwupd.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fwupd.c b/src/plugins/gs-plugin-fwupd.c
index 8aae2f4..52c7fbc 100644
--- a/src/plugins/gs-plugin-fwupd.c
+++ b/src/plugins/gs-plugin-fwupd.c
@@ -485,7 +485,10 @@ gs_plugin_add_updates (GsPlugin *plugin,
G_DBUS_ERROR,
G_DBUS_ERROR_SERVICE_UNKNOWN)) {
/* the fwupd service might be unavailable, continue in that case */
- g_prefix_error (error, "could not get fwupd updates: ");
+ if (error) {
+ *error = g_steal_pointer (&error_local);
+ g_prefix_error (error, "could not get fwupd updates: ");
+ }
return FALSE;
}
if (g_error_matches (error_local,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]