Commit f683ed9a authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent d566e483
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment