mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 04:23:21 +00:00
trivial: Show a better message when failing to connect to the system D-Bus
This commit is contained in:
parent
d424d0d193
commit
402a438bae
@ -200,8 +200,10 @@ fwupd_client_connect (FwupdClient *client, GCancellable *cancellable, GError **e
|
|||||||
|
|
||||||
/* connect to the daemon */
|
/* connect to the daemon */
|
||||||
priv->conn = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, error);
|
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;
|
return FALSE;
|
||||||
|
}
|
||||||
priv->proxy = g_dbus_proxy_new_sync (priv->conn,
|
priv->proxy = g_dbus_proxy_new_sync (priv->conn,
|
||||||
G_DBUS_PROXY_FLAGS_NONE,
|
G_DBUS_PROXY_FLAGS_NONE,
|
||||||
NULL,
|
NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user