From: Christian Persch Date: Thu, 24 May 2012 17:18:44 +0000 (+0200) Subject: application: Use printerr for runtime errors X-Git-Tag: 2.39.2~115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd8fb391aa71a7693302dfe4f27ca10bab82c68a;p=platform%2Fupstream%2Fglib.git application: Use printerr for runtime errors g_critical can be fatal (with --g-fatal-warnings, or some env var set), so don't use it to print out runtime errors. Bug #676761. --- diff --git a/gio/gapplication.c b/gio/gapplication.c index 0098281..40d8393 100644 --- a/gio/gapplication.c +++ b/gio/gapplication.c @@ -480,7 +480,7 @@ g_application_real_local_command_line (GApplication *application, if (!g_application_register (application, NULL, &error)) { - g_critical ("%s", error->message); + g_printerr ("Failed to register: %s\n", error->message); g_error_free (error); *exit_status = 1; return TRUE; @@ -1596,7 +1596,7 @@ g_application_run (GApplication *application, if (!g_application_register (application, NULL, &error)) { - g_printerr ("%s", error->message); + g_printerr ("Failed to register: %s\n", error->message); g_error_free (error); return 1; }