[gtk/reftest-fixes: 2/2] reftests: Print out a helpful error



commit 34d002121dd59d85baeb1682a4044dcc7c95643a
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Nov 1 13:33:15 2019 -0400

    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]);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]