mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-22 16:10:37 +01:00
cli: improve the error reporting a bit
This commit is contained in:
parent
fccd48fce8
commit
4ffed27959
1 changed files with 2 additions and 1 deletions
|
|
@ -10204,7 +10204,8 @@ do_connection_export (NmCli *nmc, int argc, char **argv)
|
|||
/* Export VPN configuration */
|
||||
plugin = nm_vpn_get_plugin_by_service (type, &error);
|
||||
if (!plugin) {
|
||||
g_string_printf (nmc->return_text, _("Error: failed to load VPN plugin."));
|
||||
g_string_printf (nmc->return_text, _("Error: failed to load VPN plugin: %s."),
|
||||
error->message);
|
||||
nmc->return_value = NMC_RESULT_ERROR_UNKNOWN;
|
||||
goto finish;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue