summaryrefslogtreecommitdiff
path: root/src/vpn-manager
diff options
context:
space:
mode:
authorDan Winship <danw@redhat.com>2015-04-21 09:52:25 -0400
committerDan Winship <danw@redhat.com>2015-07-24 13:25:47 -0400
commitf3d10b3ec8aa6674f8146ea6d1fd9d872af50083 (patch)
tree99a5e7846d6db0fd934f1e5a2221f959bbdabeb7 /src/vpn-manager
parentee707ba95aa9281c9ca752d56a59fa104b23d2f4 (diff)
downloadNetworkManager-f3d10b3ec8aa6674f8146ea6d1fd9d872af50083.tar.gz
core: add missing g_dbus_error_strip_remote_error() calls
Diffstat (limited to 'src/vpn-manager')
-rw-r--r--src/vpn-manager/nm-vpn-connection.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/vpn-manager/nm-vpn-connection.c b/src/vpn-manager/nm-vpn-connection.c
index e6a2ca94dc..4db6fff1d2 100644
--- a/src/vpn-manager/nm-vpn-connection.c
+++ b/src/vpn-manager/nm-vpn-connection.c
@@ -1547,6 +1547,7 @@ connect_cb (GDBusProxy *proxy, GAsyncResult *result, gpointer user_data)
self = NM_VPN_CONNECTION (user_data);
if (error) {
+ g_dbus_error_strip_remote_error (error);
nm_log_warn (LOGD_VPN, "VPN connection '%s' failed to connect: '%s'.",
nm_connection_get_id (NM_VPN_CONNECTION_GET_PRIVATE (self)->connection),
error->message);
@@ -1587,6 +1588,7 @@ connect_interactive_cb (GDBusProxy *proxy, GAsyncResult *result, gpointer user_d
(GAsyncReadyCallback) connect_cb,
self);
} else if (error) {
+ g_dbus_error_strip_remote_error (error);
nm_log_warn (LOGD_VPN, "VPN connection '%s' failed to connect interactively: '%s'.",
nm_connection_get_id (priv->connection), error->message);
_set_vpn_state (self, STATE_FAILED, NM_VPN_CONNECTION_STATE_REASON_SERVICE_START_FAILED, FALSE);
@@ -1946,11 +1948,11 @@ plugin_need_secrets_cb (GDBusProxy *proxy, GAsyncResult *result, gpointer user_d
priv = NM_VPN_CONNECTION_GET_PRIVATE (self);
if (error) {
- nm_log_err (LOGD_VPN, "(%s/%s) plugin NeedSecrets request #%d failed: %s %s",
+ g_dbus_error_strip_remote_error (error);
+ nm_log_err (LOGD_VPN, "(%s/%s) plugin NeedSecrets request #%d failed: %s",
nm_connection_get_uuid (priv->connection),
nm_connection_get_id (priv->connection),
priv->secrets_idx + 1,
- g_quark_to_string (error->domain),
error->message);
_set_vpn_state (self, STATE_FAILED, NM_VPN_CONNECTION_STATE_REASON_NO_SECRETS, FALSE);
return;
@@ -1997,10 +1999,10 @@ plugin_new_secrets_cb (GDBusProxy *proxy, GAsyncResult *result, gpointer user_da
priv = NM_VPN_CONNECTION_GET_PRIVATE (self);
if (error) {
- nm_log_err (LOGD_VPN, "(%s/%s) sending new secrets to the plugin failed: %s %s",
+ g_dbus_error_strip_remote_error (error);
+ nm_log_err (LOGD_VPN, "(%s/%s) sending new secrets to the plugin failed: %s",
nm_connection_get_uuid (priv->connection),
nm_connection_get_id (priv->connection),
- g_quark_to_string (error->domain),
error->message);
_set_vpn_state (self, STATE_FAILED, NM_VPN_CONNECTION_STATE_REASON_NO_SECRETS, FALSE);
} else