diff options
author | Dan Winship <danw@gnome.org> | 2014-04-08 12:02:28 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-06-20 11:28:22 -0400 |
commit | 2d3b8f735731abf6dcbad1714e126c2ce8fc418a (patch) | |
tree | 4a65adb6a5e661d5adebb24c23cf5f01b283274d /cli/src/devices.c | |
parent | a4b689096e1a9f85bb69073e0241d005025fd7b1 (diff) | |
download | NetworkManager-danw/wip/gerror.tar.gz |
all: don't include error->code in log messagesdanw/wip/gerror
GError codes are only unique per domain, so logging the code without
also indicating the domain is not helpful. And anyway, if the error
messages are not distinctive enough to tell the whole story then we
should fix the error messages.
Diffstat (limited to 'cli/src/devices.c')
-rw-r--r-- | cli/src/devices.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |