Print dl error message if load fails.

This commit is contained in:
Tomas Frydrych 2009-01-06 11:31:45 +00:00
parent ec09ac49f6
commit d6b974ba15

View File

@ -59,7 +59,8 @@ mutter_module_load (GTypeModule *gmodule)
if (!priv->lib && if (!priv->lib &&
!(priv->lib = g_module_open (priv->path, G_MODULE_BIND_LOCAL))) !(priv->lib = g_module_open (priv->path, G_MODULE_BIND_LOCAL)))
{ {
g_warning ("Could not load library [%s]", priv->path); g_warning ("Could not load library [%s (%s)]",
priv->path, g_module_error ());
return FALSE; return FALSE;
} }