summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/src/connections.c16
-rw-r--r--cli/src/devices.c4
-rw-r--r--cli/src/network-manager.c4
3 files changed, 12 insertions, 12 deletions
diff --git a/cli/src/connections.c b/cli/src/connections.c
index a393dc0ec7..7e84432f85 100644
--- a/cli/src/connections.c
+++ b/cli/src/connections.c
@@ -5001,8 +5001,8 @@ add_connection_cb (NMRemoteSettings *settings,
if (error) {
g_string_printf (nmc->return_text,
- _("Error: Failed to add '%s' connection: (%d) %s"),
- info->con_name, error->code, error->message);
+ _("Error: Failed to add '%s' connection: %s"),
+ info->con_name, error->message);
nmc->return_value = NMC_RESULT_ERROR_CON_ACTIVATION;
} else {
printf (_("Connection '%s' (%s) successfully added.\n"),
@@ -7489,10 +7489,10 @@ editor_menu_main (NmCli *nmc, NMConnection *connection, const char *connection_t
g_cond_wait (&nmc_editor_cond, &nmc_editor_mutex);
if (nmc_editor_error) {
- printf (_("Error: Failed to save '%s' (%s) connection: (%d) %s\n"),
+ printf (_("Error: Failed to save '%s' (%s) connection: %s\n"),
nm_connection_get_id (connection),
nm_connection_get_uuid (connection),
- nmc_editor_error->code, nmc_editor_error->message);
+ nmc_editor_error->message);
g_error_free (nmc_editor_error);
} else {
@@ -7579,10 +7579,10 @@ editor_menu_main (NmCli *nmc, NMConnection *connection, const char *connection_t
g_cond_wait (&nmc_editor_cond, &nmc_editor_mutex);
if (nmc_editor_error) {
- printf (_("Error: Failed to activate '%s' (%s) connection: (%d) %s\n"),
+ printf (_("Error: Failed to activate '%s' (%s) connection: %s\n"),
nm_connection_get_id (connection),
nm_connection_get_uuid (connection),
- nmc_editor_error->code, nmc_editor_error->message);
+ nmc_editor_error->message);
g_error_free (nmc_editor_error);
} else {
printf (_("Monitoring connection activation (press any key to continue)\n"));
@@ -8029,9 +8029,9 @@ modify_connection_cb (NMRemoteConnection *connection,
if (error) {
g_string_printf (nmc->return_text,
- _("Error: Failed to modify connection '%s': (%d) %s"),
+ _("Error: Failed to modify connection '%s': %s"),
nm_connection_get_id (NM_CONNECTION (connection)),
- error->code, error->message);
+ error->message);
nmc->return_value = NMC_RESULT_ERROR_UNKNOWN;
} else {
if (nmc->print_output == NMC_PRINT_PRETTY)
diff --git a/cli/src/devices.c b/cli/src/devices.c
index b531150699..5bc9ba352e 100644
--- a/cli/src/devices.c
+++ b/cli/src/devices.c
@@ -1860,8 +1860,8 @@ add_and_activate_cb (NMClient *client,
NMActiveConnectionState state;
if (error) {
- g_string_printf (nmc->return_text, _("Error: Failed to add/activate new connection: (%d) %s"),
- error->code, error->message);
+ g_string_printf (nmc->return_text, _("Error: Failed to add/activate new connection: %s"),
+ error->message);
nmc->return_value = NMC_RESULT_ERROR_CON_ACTIVATION;
quit ();
} else {
diff --git a/cli/src/network-manager.c b/cli/src/network-manager.c
index ed074c6dee..5fe02104cf 100644
--- a/cli/src/network-manager.c
+++ b/cli/src/network-manager.c
@@ -562,8 +562,8 @@ save_hostname_cb (NMRemoteSettings *settings, GError *error, gpointer user_data)
NmCli *nmc = (NmCli *) user_data;
if (error) {
- g_string_printf (nmc->return_text, _("Error: failed to set hostname: (%d) %s"),
- error->code, error->message);
+ g_string_printf (nmc->return_text, _("Error: failed to set hostname: %s"),
+ error->message);
nmc->return_value = NMC_RESULT_ERROR_UNKNOWN;
}
quit ();