[pango] pango-list: Be nice



commit d0dc07fa02d7f459c187803b9552bd834639e524
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jul 18 07:22:18 2019 -0700

    pango-list: Be nice
    
    No need to dump core because somebody typoed an option.

 utils/pango-list.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/utils/pango-list.c b/utils/pango-list.c
index 7440e18b..c0f0d4ae 100644
--- a/utils/pango-list.c
+++ b/utils/pango-list.c
@@ -52,9 +52,9 @@ main (int    argc,
   if (!g_option_context_parse (context, &argc, &argv, &error))
     {
       if (error != NULL)
-        g_error ("%s", error->message);
+        g_printerr ("%s\n", error->message);
       else
-        g_error ("Option parse error");
+        g_printerr ("Option parse error\n");
       exit (1);
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]