[NetworkManager-pptp] shared/vpn-plugin-utils: change the domain of errors



commit 082ec4d743224dc08ffce17d34e8add6ad2ab1de
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Tue Oct 23 16:02:25 2018 +0200

    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.
    
    (imported from NetworkManager commit cb28719e3a6f602a702f1665434d5c8b9aad3cec)

 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 772aa39..39c5627 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);
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]