From 402a438bae798881387f273199b7bbaf08e2aa68 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 14 Jun 2017 15:15:39 +0100 Subject: [PATCH] trivial: Show a better message when failing to connect to the system D-Bus --- libfwupd/fwupd-client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libfwupd/fwupd-client.c b/libfwupd/fwupd-client.c index 814802cac..2acb90c4b 100644 --- a/libfwupd/fwupd-client.c +++ b/libfwupd/fwupd-client.c @@ -200,8 +200,10 @@ fwupd_client_connect (FwupdClient *client, GCancellable *cancellable, GError **e /* connect to the daemon */ priv->conn = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, error); - if (priv->conn == NULL) + if (priv->conn == NULL) { + g_prefix_error (error, "Failed to connect to system D-Bus: "); return FALSE; + } priv->proxy = g_dbus_proxy_new_sync (priv->conn, G_DBUS_PROXY_FLAGS_NONE, NULL,