MDL-73876 behat: Show exceptions stack trace

This commit is contained in:
Andrew Lyons 2022-06-30 12:37:22 +04:00 committed by Ilya Tregubov
parent 417d1b918b
commit 019c633bd9

View File

@ -954,8 +954,11 @@ EOF;
}
} else {
$errorinfo = $this->get_debug_text($errorinfoboxes[0]->getHtml()) . "\n" .
$this->get_debug_text($errorinfoboxes[1]->getHtml());
$errorinfo = implode("\n", [
$this->get_debug_text($errorinfoboxes[0]->getHtml()),
$this->get_debug_text($errorinfoboxes[1]->getHtml()),
html_to_text($errorinfoboxes[2]->find('css', 'ul')->getHtml()),
]);
}
$msg = "Moodle exception: " . $errormsg->getText() . "\n" . $errorinfo;