From 34d002121dd59d85baeb1682a4044dcc7c95643a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 1 Nov 2019 13:33:15 -0400 Subject: [PATCH] reftests: Print out a helpful error When module loading fails, print out the error. --- testsuite/reftests/reftest-snapshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/reftests/reftest-snapshot.c b/testsuite/reftests/reftest-snapshot.c index 231ff722e2..04e6c23fbd 100644 --- a/testsuite/reftests/reftest-snapshot.c +++ b/testsuite/reftests/reftest-snapshot.c @@ -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]);