diff --git a/admin/tool/behat/cli/util.php b/admin/tool/behat/cli/util.php
index 25196685f4a..8e359fbd63c 100644
--- a/admin/tool/behat/cli/util.php
+++ b/admin/tool/behat/cli/util.php
@@ -134,7 +134,11 @@ if ($options['diag'] || $options['enable'] || $options['disable']) {
             $exitcodes = print_combined_install_output($processes);
             foreach ($exitcodes as $name => $exitcode) {
                 if ($exitcode != 0) {
+                    echo "Failed process [[$name]]" . PHP_EOL;
+                    echo $processes[$name]->getOutput();
+                    echo PHP_EOL;
                     echo $processes[$name]->getErrorOutput();
+                    echo PHP_EOL . PHP_EOL;
                 }
                 $status = (bool)$status || (bool)$exitcode;
             }
@@ -144,7 +148,11 @@ if ($options['diag'] || $options['enable'] || $options['disable']) {
         $exitcodes = print_combined_install_output($processes);
         foreach ($exitcodes as $name => $exitcode) {
             if ($exitcode != 0) {
+                echo "Failed process [[$name]]" . PHP_EOL;
+                echo $processes[$name]->getOutput();
+                echo PHP_EOL;
                 echo $processes[$name]->getErrorOutput();
+                echo PHP_EOL . PHP_EOL;
             }
             $status = (bool)$status || (bool)$exitcode;
         }