[network-manager-applet/th/c-e-import-fixes-bgo774290: 11/11] c-e: use g_printerr() instead of g_warning() for user-error
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/th/c-e-import-fixes-bgo774290: 11/11] c-e: use g_printerr() instead of g_warning() for user-error
- Date: Tue, 22 Nov 2016 12:48:58 +0000 (UTC)
commit f71a4dcf45b8934f82a1e2e7e2c8b1e6c609acd7
Author: Thomas Haller <thaller redhat com>
Date: Tue Nov 22 12:06:31 2016 +0100
c-e: use g_printerr() instead of g_warning() for user-error
We shouldn't use g_log() for regular error messages. They garble
the output and should be used only for internal errors and notifications
(or preferably not at all).
src/connection-editor/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/connection-editor/main.c b/src/connection-editor/main.c
index e0318a9..d848668 100644
--- a/src/connection-editor/main.c
+++ b/src/connection-editor/main.c
@@ -341,7 +341,7 @@ main (int argc, char *argv[])
g_option_context_set_summary (opt_ctx, "Allows users to view and edit network connection settings");
g_option_context_add_main_entries (opt_ctx, entries, NULL);
if (!g_option_context_parse (opt_ctx, &argc, &argv, &error)) {
- g_warning ("Failed to parse options: %s", error->message);
+ g_printerr ("Failed to parse options: %s\n", error->message);
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]