Mercurial > pidgin
comparison libpurple/plugin.c @ 22996:a9dcc0187af0
Use a little more helpful debug message when a plugin can't be loaded.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 18 May 2008 19:59:27 +0000 |
parents | 645423a7a7b6 |
children | 8282911d5e17 |
comparison
equal
deleted
inserted
replaced
22995:a367b2b30a35 | 22996:a9dcc0187af0 |
---|---|
357 else if (plugin->info->ui_requirement && | 357 else if (plugin->info->ui_requirement && |
358 strcmp(plugin->info->ui_requirement, purple_core_get_ui())) | 358 strcmp(plugin->info->ui_requirement, purple_core_get_ui())) |
359 { | 359 { |
360 plugin->error = g_strdup_printf(_("You are using %s, but this plugin requires %s."), | 360 plugin->error = g_strdup_printf(_("You are using %s, but this plugin requires %s."), |
361 purple_core_get_ui(), plugin->info->ui_requirement); | 361 purple_core_get_ui(), plugin->info->ui_requirement); |
362 purple_debug_error("plugins", "%s is not loadable: The UI requirement is not met.\n", plugin->path); | 362 purple_debug_error("plugins", "%s is not loadable: The UI requirement is not met. (%s)\n", plugin->path, plugin->error); |
363 plugin->unloadable = TRUE; | 363 plugin->unloadable = TRUE; |
364 return plugin; | 364 return plugin; |
365 } | 365 } |
366 | 366 |
367 /* | 367 /* |
472 /* If plugin is a PRPL, make sure it implements the required functions */ | 472 /* If plugin is a PRPL, make sure it implements the required functions */ |
473 if ((PURPLE_PLUGIN_PROTOCOL_INFO(plugin)->list_icon == NULL) || | 473 if ((PURPLE_PLUGIN_PROTOCOL_INFO(plugin)->list_icon == NULL) || |
474 (PURPLE_PLUGIN_PROTOCOL_INFO(plugin)->login == NULL) || | 474 (PURPLE_PLUGIN_PROTOCOL_INFO(plugin)->login == NULL) || |
475 (PURPLE_PLUGIN_PROTOCOL_INFO(plugin)->close == NULL)) | 475 (PURPLE_PLUGIN_PROTOCOL_INFO(plugin)->close == NULL)) |
476 { | 476 { |
477 plugin->error = g_strdup(_("Plugin does not implement all required functions")); | 477 plugin->error = g_strdup(_("Plugin does not implement all required functions (list_icon, login and close)")); |
478 purple_debug_error("plugins", "%s is not loadable: Plugin does not implement all required functions\n", | 478 purple_debug_error("plugins", "%s is not loadable: %s\n", |
479 plugin->path); | 479 plugin->path, plugin->error); |
480 plugin->unloadable = TRUE; | 480 plugin->unloadable = TRUE; |
481 return plugin; | 481 return plugin; |
482 } | 482 } |
483 | 483 |
484 /* For debugging, let's warn about prpl prefs. */ | 484 /* For debugging, let's warn about prpl prefs. */ |