Clean up messages when loading plugins

Remove a "got here" leftover, remove unnecessary trailing \n when
calling g_message(), include g_module_error() in the output when
loading a module fails.
This commit is contained in:
Owen W. Taylor 2008-10-29 14:40:51 -04:00
parent 783e51281a
commit 6683b5efff

View File

@ -409,14 +409,12 @@ mutter_plugin_manager_load (MutterPluginManager *plugin_mgr)
plugin_mgr->plugins = g_list_prepend (plugin_mgr->plugins, p);
else
{
g_message ("Plugin load for [%s] failed\n", path);
g_message ("Plugin load for [%s] failed", path);
g_module_close (plugin);
}
}
else
g_message ("Unable to load plugin [%s]\n", path);
g_message ("got this far with [%s]\n", path);
g_message ("Unable to load plugin [%s]: %s", path, g_module_error());
g_free (path);
g_free (plugin_string);