mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-73876 behat: Show exceptions stack trace
This commit is contained in:
parent
417d1b918b
commit
019c633bd9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user