[Github-comments] [geany-plugins] Use GLib error reporting/logging instead of fprintf() (#370)

Colomban Wendling notifications at xxxxx
Wed Feb 24 22:51:39 UTC 2016


> @@ -58,7 +57,7 @@ gpgme_error_t geanypg_show_err_msg(gpgme_error_t err)
>      gchar const * msg = (gchar const *)gpgme_strerror(err);
>      gchar const * src = (gchar const *)gpgme_strsource(err);
>      dialogs_show_msgbox(GTK_MESSAGE_ERROR, "%s %s: %s\n", _("Error from"), src, msg);
> -    fprintf(stderr, "GeanyPG: %s %s: %s\n", _("Error from"), msg, src);
> +    g_error("%s %s: %s", _("Error from"), msg, src);

don't use [`g_error()`](https://developer.gnome.org/glib/unstable/glib-Message-Logging.html#g-error) as it `abort()`s.

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/370/files#r54021345
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160224/09f992f0/attachment.html>


More information about the Github-comments mailing list