[network-manager-applet/th/c-e-import-fixes-bgo774290] c-e: use g_printerr() instead of g_warning() for user-error



commit 0a2ab4d82e085f1c0d40438a884d833b1bad4a3a
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]