[Xfce4-commits] [apps/mousepad] 01/01: Do not core dump on silly errors, just exit (Bug #12413)

noreply at xfce.org noreply at xfce.org
Thu Apr 25 22:32:25 CEST 2019


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/mousepad.

commit f220dfcc39e122348de89706c0ee2f57bc18c035
Author: Andre Miranda <andreldm at xfce.org>
Date:   Sat Jan 23 12:05:55 2016 -0300

    Do not core dump on silly errors, just exit (Bug #12413)
---
 mousepad/main.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/mousepad/main.c b/mousepad/main.c
index 47d31e9..b8c5c08 100644
--- a/mousepad/main.c
+++ b/mousepad/main.c
@@ -89,12 +89,12 @@ main (gint argc, gchar **argv)
       if (G_LIKELY (error == NULL))
         {
           /* no error message, the gui initialization failed */
-          g_error ("%s", _("Failed to open display."));
+          g_printerr ("%s\n", _("Failed to open display."));
         }
       else
         {
           /* print the error message */
-          g_error ("%s", error->message);
+          g_printerr ("%s\n", error->message);
           g_error_free (error);
         }
 
@@ -120,7 +120,7 @@ main (gint argc, gchar **argv)
       /* try to terminate whatever is running */
       if (!mousepad_dbus_client_terminate (&error))
         {
-          g_error ("Failed to terminate a running instance: %s\n", error->message);
+          g_printerr ("Failed to terminate a running instance: %s\n", error->message);
           g_error_free (error);
           return EXIT_FAILURE;
         }
@@ -148,7 +148,7 @@ main (gint argc, gchar **argv)
           /* print errors, if needed */
           if (G_UNLIKELY (error))
             {
-              g_error ("Mousepad: %s\n", error->message);
+              g_printerr ("Mousepad: %s\n", error->message);
               g_error_free (error);
 
               return EXIT_FAILURE;
@@ -165,7 +165,7 @@ main (gint argc, gchar **argv)
   /* Initialize xfconf */
   if (G_UNLIKELY (xfconf_init(&error) == FALSE))
     {
-      g_error ("Failed to initialize xfconf");
+      g_printerr ("Failed to initialize xfconf");
       g_error_free (error);
 
       return EXIT_FAILURE;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list