From cb28719e3a6f602a702f1665434d5c8b9aad3cec Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 23 Oct 2018 16:02:25 +0200 Subject: [PATCH] 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. --- shared/nm-utils/nm-vpn-plugin-utils.c | 12 ++++++------ 1 file 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); }