Better error message if module_open() fails. (#105349, Tim Mooney)

2003-02-06  Matthias Clasen  <maclas@gmx.de>

	* queryloaders.c (query_module): Better error message if
	module_open() fails.  (#105349, Tim Mooney)
This commit is contained in:
Matthias Clasen 2003-02-06 19:31:46 +00:00 committed by Matthias Clasen
parent d566e483b6
commit f683ed9a0a

View File

@ -101,7 +101,11 @@ query_module (const char *dir, const char *file)
g_free (info);
}
else {
g_fprintf (stderr, "Cannot load loader %s\n", path);
if (module == NULL)
g_fprintf (stderr, "g_module_open() failed for %s: %s\n", path,
g_module_error());
else
g_fprintf (stderr, "Cannot load loader %s\n", path);
}
if (module)
g_module_close (module);