forked from AuroraMiddleware/gtk
reftests: Print out a helpful error
When module loading fails, print out the error.
This commit is contained in:
parent
22bb1bd568
commit
34d002121d
@ -194,7 +194,7 @@ connect_signals (GtkBuilder *builder,
|
|||||||
module = reftest_module_new (directory, split[0]);
|
module = reftest_module_new (directory, split[0]);
|
||||||
if (module == NULL)
|
if (module == NULL)
|
||||||
{
|
{
|
||||||
g_error ("Could not load module '%s' from '%s' when looking up '%s'", split[0], directory, handler_name);
|
g_error ("Could not load module '%s' from '%s' when looking up '%s': %s", split[0], directory, handler_name, g_module_error ());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
func = reftest_module_lookup (module, split[1]);
|
func = reftest_module_lookup (module, split[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user