summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-04-08 12:02:28 -0400
committerDan Winship <danw@gnome.org>2014-06-20 11:28:22 -0400
commit2d3b8f735731abf6dcbad1714e126c2ce8fc418a (patch)
tree4a65adb6a5e661d5adebb24c23cf5f01b283274d /src/main.c
parenta4b689096e1a9f85bb69073e0241d005025fd7b1 (diff)
downloadNetworkManager-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 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 5336f4b74d..863f7bcb35 100644
--- a/src/main.c
+++ b/src/main.c
@@ -498,8 +498,8 @@ main (int argc, char *argv[])
/* Read the config file and CLI overrides */
config = nm_config_new (&error);
if (config == NULL) {
- fprintf (stderr, _("Failed to read configuration: (%d) %s\n"),
- error->code, error->message);
+ fprintf (stderr, _("Failed to read configuration: %s\n"),
+ error->message);
exit (1);
}
@@ -524,9 +524,9 @@ main (int argc, char *argv[])
/* Parse the state file */
if (!parse_state_file (state_file, &net_enabled, &wifi_enabled, &wwan_enabled, &wimax_enabled, &error)) {
- fprintf (stderr, _("State file %s parsing failed: (%d) %s\n"),
+ fprintf (stderr, _("State file %s parsing failed: %s\n"),
state_file,
- error->code, error->message);
+ error->message);
/* Not a hard failure */
}
g_clear_error (&error);