MDL-17425: Unit test system - improved reporting of moodle_exception
This commit is contained in:
@@ -149,8 +149,11 @@ class ExHtmlReporter extends HtmlReporter {
|
||||
}
|
||||
if($exception->debuginfo) {
|
||||
// Note debug info is not escaped so may contain formatting
|
||||
$message.='<pre>'.$exception->debuginfo.'</pre>';
|
||||
$message.='<pre>'.$exception->debuginfo."\n\n";
|
||||
} else {
|
||||
$message.='<pre>';
|
||||
}
|
||||
$message.=$exception->getTraceAsString().'</pre>';
|
||||
}
|
||||
|
||||
$this->_paintPassFail('exception', $message,true);
|
||||
|
||||
Reference in New Issue
Block a user