summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-10-23 16:02:25 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-10-24 15:12:43 +0200
commitcb28719e3a6f602a702f1665434d5c8b9aad3cec (patch)
tree30fa8a4133b1d96ca05c9bb2815b2522d685f2a0
parentb1571e687e3ffa587be43aac819c7625d83f259a (diff)
downloadNetworkManager-cb28719e3a6f602a702f1665434d5c8b9aad3cec.tar.gz
shared/vpn-plugin-utils: change the domain of errors
I suppose NM_VPN_PLUGIN_ERROR is slightly less wrong than NM_CONNECTION_ERROR here. Shall have no practical implications anyway.
-rw-r--r--shared/nm-utils/nm-vpn-plugin-utils.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/shared/nm-utils/nm-vpn-plugin-utils.c b/shared/nm-utils/nm-vpn-plugin-utils.c
index 772aa39aea..39c5627fb3 100644
--- a/shared/nm-utils/nm-vpn-plugin-utils.c
+++ b/shared/nm-utils/nm-vpn-plugin-utils.c
@@ -81,8 +81,8 @@ nm_vpn_plugin_utils_load_editor (const char *module_name,
return NULL;
}
g_set_error (error,
- NM_CONNECTION_ERROR,
- NM_CONNECTION_ERROR_FAILED,
+ NM_VPN_PLUGIN_ERROR,
+ NM_VPN_PLUGIN_ERROR_FAILED,
_("cannot load editor plugin: %s"), dlerror ());
return NULL;
}
@@ -90,8 +90,8 @@ nm_vpn_plugin_utils_load_editor (const char *module_name,
factory = dlsym (dl_module, factory_name);
if (!factory) {
g_set_error (error,
- NM_CONNECTION_ERROR,
- NM_CONNECTION_ERROR_FAILED,
+ NM_VPN_PLUGIN_ERROR,
+ NM_VPN_PLUGIN_ERROR_FAILED,
_("cannot load factory %s from plugin: %s"),
factory_name, dlerror ());
dlclose (dl_module);
@@ -116,8 +116,8 @@ nm_vpn_plugin_utils_load_editor (const char *module_name,
if (!editor) {
if (error && !*error ) {
g_set_error_literal (error,
- NM_CONNECTION_ERROR,
- NM_CONNECTION_ERROR_FAILED,
+ NM_VPN_PLUGIN_ERROR,
+ NM_VPN_PLUGIN_ERROR_FAILED,
_("unknown error creating editor instance"));
g_return_val_if_reached (NULL);
}