summaryrefslogtreecommitdiff
path: root/finch/libfinch.c
diff options
context:
space:
mode:
authorGary Kramlich <grim@reaperworld.com>2022-10-31 22:50:20 -0500
committerGary Kramlich <grim@reaperworld.com>2022-10-31 22:50:20 -0500
commitf0d144700d04a6d33706849038c9e0f93725c5c7 (patch)
tree3b190e64446b65e2fdc152b708e4f009b06a9273 /finch/libfinch.c
parent901f4ebdfe8b3a3740a0757c169cef54551dc381 (diff)
downloadpidgin-f0d144700d04a6d33706849038c9e0f93725c5c7.tar.gz
Add an out parameter for an error to purple_core_init
Testing Done: Ran the unit tests, pidgin3 and finch3 without issue. Bugs closed: PIDGIN-17699 Reviewed at https://reviews.imfreedom.org/r/2004/
Diffstat (limited to 'finch/libfinch.c')
-rw-r--r--finch/libfinch.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/finch/libfinch.c b/finch/libfinch.c
index d978d34289..b28d56c364 100644
--- a/finch/libfinch.c
+++ b/finch/libfinch.c
@@ -162,11 +162,13 @@ init_libpurple(int argc, char **argv)
purple_idle_set_ui(finch_idle_new());
- if (!purple_core_init(finch_ui_new()))
+ if (!purple_core_init(finch_ui_new(), &error))
{
fprintf(stderr,
- "Initialization of the Purple core failed. Dumping core.\n"
- "Please report this!\n");
+ _("Initialization of the libpurple core failed. %s\n"
+ "Aborting!\nPlease report this!\n"),
+ (error != NULL) ? error->message : "unknown error");
+ g_clear_error(&error);
abort();
}