From 4ffed2795950a7174eaff4079d57cccd276dfae8 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Mon, 7 Dec 2015 10:51:49 +0100 Subject: [PATCH] cli: improve the error reporting a bit --- clients/cli/connections.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clients/cli/connections.c b/clients/cli/connections.c index 870b61ff0e..1cdfadf26e 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -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; }