Extend the error message displayed when a plugin fails to load.

* plugin.c (try_load_plugin): Extend error message when a plugin
	fails to open.
This commit is contained in:
Nick Clifton
2020-05-26 14:49:42 +01:00
parent a05e3e2039
commit 9e7cb4c359
2 changed files with 7 additions and 1 deletions

View File

@@ -273,7 +273,8 @@ try_load_plugin (const char *pname,
plugin_handle = dlopen (pname, RTLD_NOW);
if (!plugin_handle)
{
_bfd_error_handler ("%s\n", dlerror ());
_bfd_error_handler ("Failed to load plugin '%s', reason: %s\n",
pname, dlerror ());
return 0;
}