[rygel] Show exact error on module load failure



commit 3267a2a5a589fbfb62b725c24880ce5c9447a234
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed May 27 13:53:40 2009 +0300

    Show exact error on module load failure
---
 src/rygel/rygel-plugin-loader.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/rygel/rygel-plugin-loader.vala b/src/rygel/rygel-plugin-loader.vala
index 209c840..39b4b94 100644
--- a/src/rygel/rygel-plugin-loader.vala
+++ b/src/rygel/rygel-plugin-loader.vala
@@ -139,7 +139,9 @@ public class Rygel.PluginLoader : Object {
     private void load_module_from_file (string file_path) {
         Module module = Module.open (file_path, ModuleFlags.BIND_LOCAL);
         if (module == null) {
-            warning ("Failed to load module from path: '%s'\n", file_path);
+            warning ("Failed to load module from path '%s' : %s\n",
+                     file_path,
+                     Module.error ());
 
             return;
         }



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