diff options
Diffstat (limited to 'src/applet-device-wifi.c')
-rw-r--r-- | src/applet-device-wifi.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/applet-device-wifi.c b/src/applet-device-wifi.c index 8de2f667..0a0783b9 100644 --- a/src/applet-device-wifi.c +++ b/src/applet-device-wifi.c @@ -1344,12 +1344,9 @@ activate_existing_cb (GObject *client, g_clear_object (&active); if (error) { const char *text = _("Failed to activate connection"); - char *err_text = g_strdup_printf ("(%d) %s", error->code, - error->message ? error->message : _("Unknown error")); + const char *err_text = error->message ? error->message : _("Unknown error"); - g_warning ("%s: %s", text, err_text); utils_show_error_dialog (_("Connection failure"), text, err_text, FALSE, NULL); - g_free (err_text); g_error_free (error); } applet_schedule_update_icon (NM_APPLET (user_data)); @@ -1367,12 +1364,9 @@ activate_new_cb (GObject *client, g_clear_object (&active); if (error) { const char *text = _("Failed to add new connection"); - char *err_text = g_strdup_printf ("(%d) %s", error->code, - error->message ? error->message : _("Unknown error")); + const char *err_text = error->message ? error->message : _("Unknown error"); - g_warning ("%s: %s", text, err_text); utils_show_error_dialog (_("Connection failure"), text, err_text, FALSE, NULL); - g_free (err_text); g_error_free (error); } applet_schedule_update_icon (NM_APPLET (user_data)); |