pidgin/pidgin

aa1b5a73d32a
Parents 98c20aec9aba
Children 83ade55715e2
Have finch output the error message from purple_core_init

Testing Done:
Ran finch with `PURPLE3_CORE_ERROR_MESSAGE` set with and without a value and without the environment variable as well.

Reviewed at https://reviews.imfreedom.org/r/2009/
--- a/finch/libfinch.c Tue Nov 01 00:27:44 2022 -0500
+++ b/finch/libfinch.c Tue Nov 01 00:56:47 2022 -0500
@@ -165,11 +165,10 @@
if (!purple_core_init(finch_ui_new(), &error))
{
fprintf(stderr,
- _("Initialization of the libpurple core failed. %s\n"
- "Aborting!\nPlease report this!\n"),
+ _("Finch3 initialization failed!\nError message: %s\n"),
(error != NULL) ? error->message : "unknown error");
g_clear_error(&error);
- abort();
+ return 0;
}
finch_plugins_init();