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

Enrico Tröger notifications at xxxxx
Thu Feb 25 21:50:52 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);

Oops, sorry for that. Especially because I knew this once and then forgot about it.
I replaced all occurrences of g_error with g_warning.

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


More information about the Github-comments mailing list