diff options
author | Sadrul Habib Chowdhury <sadrul@pidgin.im> | 2008-05-18 19:59:27 +0000 |
---|---|---|
committer | Sadrul Habib Chowdhury <sadrul@pidgin.im> | 2008-05-18 19:59:27 +0000 |
commit | 0663e8e34e6ee5ccad800da627704b0b084ef8b5 (patch) | |
tree | 5cdc777ce8473228beecc4fb1ded1dd0604694d8 /libpurple/plugin.c | |
parent | af44015f09dcf8165546c929cccb33c8b20ce86c (diff) | |
download | pidgin-0663e8e34e6ee5ccad800da627704b0b084ef8b5.tar.gz |
Use a little more helpful debug message when a plugin can't be loaded.
Diffstat (limited to 'libpurple/plugin.c')
-rw-r--r-- | libpurple/plugin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpurple/plugin.c b/libpurple/plugin.c index 1a0090adab..40c07fb372 100644 --- a/libpurple/plugin.c +++ b/libpurple/plugin.c @@ -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; } |