Show exact error on module load failure
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 27 May 2009 10:53:40 +0000 (13:53 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 27 May 2009 10:53:40 +0000 (13:53 +0300)
src/rygel/rygel-plugin-loader.vala

index 209c840..39b4b94 100644 (file)
@@ -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;
         }