mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-30 13:24:48 +00:00
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.
This commit is contained in:
parent
b1571e687e
commit
cb28719e3a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue