[grilo] core: Explain why module could not be loaded



commit b3529dd4212043b2fb962410e414f65e76cdcdbb
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Dec 21 14:39:45 2012 +0100

    core: Explain why module could not be loaded
    
    Note that g_module_error() already contains the filename that
    failed to be loaded.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690612

 src/grl-registry.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/grl-registry.c b/src/grl-registry.c
index fab6aea..6f82c40 100644
--- a/src/grl-registry.c
+++ b/src/grl-registry.c
@@ -784,7 +784,7 @@ grl_registry_load_plugin (GrlRegistry *registry,
 
   module = g_module_open (library_filename, G_MODULE_BIND_LOCAL);
   if (!module) {
-    GRL_WARNING ("Failed to open module: '%s'", library_filename);
+    GRL_WARNING ("Failed to open module: %s", g_module_error ());
     g_set_error (error,
                  GRL_CORE_ERROR,
                  GRL_CORE_ERROR_LOAD_PLUGIN_FAILED,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]