diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh
index c025f7dbf1b9bef62396d493dd1d1bb7baf48bc4..29367230a49423c7065bd8b92b033384e2108b10 100755
--- a/core/scripts/run-tests.sh
+++ b/core/scripts/run-tests.sh
@@ -76,6 +76,7 @@
     $groups = simpletest_test_get_all($args['module']);
   }
   catch (Exception $e) {
+    error_log((string) $e);
     echo (string) $e;
     exit(SIMPLETEST_SCRIPT_EXIT_EXCEPTION);
   }