# HG changeset patch # User Sadrul Habib Chowdhury # Date 1211140767 0 # Node ID a9dcc0187af078e8394e64b7a33da084a09e9c9f # Parent a367b2b30a3526329916833bc40aa67482d996b2 Use a little more helpful debug message when a plugin can't be loaded. diff -r a367b2b30a35 -r a9dcc0187af0 libpurple/plugin.c --- a/libpurple/plugin.c Sun May 18 16:29:21 2008 +0000 +++ b/libpurple/plugin.c Sun May 18 19:59:27 2008 +0000 @@ -359,7 +359,7 @@ { plugin->error = g_strdup_printf(_("You are using %s, but this plugin requires %s."), purple_core_get_ui(), plugin->info->ui_requirement); - purple_debug_error("plugins", "%s is not loadable: The UI requirement is not met.\n", plugin->path); + purple_debug_error("plugins", "%s is not loadable: The UI requirement is not met. (%s)\n", plugin->path, plugin->error); plugin->unloadable = TRUE; return plugin; } @@ -474,9 +474,9 @@ (PURPLE_PLUGIN_PROTOCOL_INFO(plugin)->login == NULL) || (PURPLE_PLUGIN_PROTOCOL_INFO(plugin)->close == NULL)) { - plugin->error = g_strdup(_("Plugin does not implement all required functions")); - purple_debug_error("plugins", "%s is not loadable: Plugin does not implement all required functions\n", - plugin->path); + plugin->error = g_strdup(_("Plugin does not implement all required functions (list_icon, login and close)")); + purple_debug_error("plugins", "%s is not loadable: %s\n", + plugin->path, plugin->error); plugin->unloadable = TRUE; return plugin; }