reftests: Print out a helpful error

When module loading fails, print out the error.
This commit is contained in:
Matthias Clasen 2019-11-01 13:33:15 -04:00
parent 22bb1bd568
commit 34d002121d

View File

@ -194,7 +194,7 @@ connect_signals (GtkBuilder *builder,
module = reftest_module_new (directory, split[0]);
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;
}
func = reftest_module_lookup (module, split[1]);