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

Colomban Wendling notifications at xxxxx
Wed Feb 24 22:53:38 UTC 2016


> @@ -108,7 +108,7 @@ gpgme_error_t geanypg_passphrase_cb(void * hook,
>  
>          execvp(*argv, argv);
>          /* shouldn't get here */
> -        fprintf(stderr, "GeanyPG: %s\n%s\n", _("Could not use pinentry."), strerror(errno));
> +        g_error("%s: %s", _("Could not use pinentry."), strerror(errno));
>          exit(1); /* kill the child */

well, here it `exit()`s so it's probably okay-ish, although it's still less nice `exit()` is nicer (less "OMG something funky happened lemme outta here plzz")

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


More information about the Github-comments mailing list