]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17425: Unit test system - improved reporting of moodle_exception
authorsam_marshall <sam_marshall>
Mon, 1 Dec 2008 16:46:01 +0000 (16:46 +0000)
committersam_marshall <sam_marshall>
Mon, 1 Dec 2008 16:46:01 +0000 (16:46 +0000)
admin/report/unittest/ex_reporter.php

index 1b0cb231b972240ab315436104080537fba4182c..355926876786166fd50d2c9e3218f6f71fc477c0 100644 (file)
@@ -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);