Include the module file name to the error message given when module

2007-07-09  Matthias Clasen  <mclasen@redhat.com>

        * gmodule.c (g_module_open): Include the module file
        name to the error message given when module initialization
        fails.  (#448484, Gustavo Carneiro)


svn path=/trunk/; revision=5611
This commit is contained in:
Matthias Clasen 2007-07-09 17:50:28 +00:00 committed by Matthias Clasen
parent 3a132f5dd5
commit 964471d184
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-07-09 Matthias Clasen <mclasen@redhat.com>
* gmodule.c (g_module_open): Include the module file
name to the error message given when module initialization
fails. (#448484, Gustavo Carneiro)
Fri Jun 29 2007 Matthias Clasen <mclasen@redhat.com>
* === Released 2.13.6 ===

View File

@ -488,7 +488,10 @@ g_module_open (const gchar *file_name,
{
gchar *error;
error = g_strconcat ("GModule initialization check failed: ", check_failed, NULL);
error = g_strconcat ("GModule (",
file_name ? file_name : "NULL",
") initialization check failed: ",
check_failed, NULL);
g_module_close (module);
module = NULL;
g_module_set_error (error);