pidgin: e928140a: Use a little more helpful debug message ...

sadrul at pidgin.im sadrul at pidgin.im
Sun May 18 16:40:48 EDT 2008


-----------------------------------------------------------------
Revision: e928140a19f323a6a2e917a252a0ca9428a60b5c
Ancestor: febe60163f5634126e201a71a3e2ea6fdff6adf7
Author: sadrul at pidgin.im
Date: 2008-05-18T19:59:27
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/e928140a19f323a6a2e917a252a0ca9428a60b5c

Modified files:
        libpurple/plugin.c

ChangeLog: 

Use a little more helpful debug message when a plugin can't be loaded.

-------------- next part --------------
============================================================
--- libpurple/plugin.c	de9710fa2ec34ef01784c43d778185deb3dc1611
+++ libpurple/plugin.c	0b134dff56c99a2adb9b01b35ad136a87f5f6875
@@ -359,7 +359,7 @@ purple_plugin_probe(const char *filename
 	{
 		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_probe(const char *filename
 		    (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;
 		}


More information about the Commits mailing list