We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8316779 commit e8aa815Copy full SHA for e8aa815
1 file changed
public/lib/tests/behat/behat_general.php
@@ -1283,11 +1283,12 @@ public function i_run_all_adhoc_tasks() {
1283
// If a task was successful it will be removed.
1284
// If it failed then it will still exist.
1285
if ($DB->record_exists('task_adhoc', ['id' => $task->get_id()])) {
1286
- // End ouptut buffering and flush the current buffer.
+ // End output buffering and flush the current buffer.
1287
// This should be from just the current task.
1288
+ $errordetails = ob_get_contents();
1289
ob_end_flush();
1290
- throw new DriverException('An adhoc task failed', 0);
1291
+ throw new DriverException("An adhoc task failed. mtrace() output:\n\n" . $errordetails);
1292
}
1293
1294
ob_end_clean();
0 commit comments