Show Exception class name in printThrowable
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 13 Apr 2016 15:59:47 +0000 (17:59 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 13 Apr 2016 16:00:36 +0000 (18:00 +0200)
wcfsetup/install/files/lib/core.functions.php

index 432b136bb6ec0b0a0261de72f428af7b02b5dcf2..15b18543f6f4343a196a64ab1befe78eb70ece88 100644 (file)
@@ -394,6 +394,10 @@ EXPLANATION;
                                                        <p class="exceptionText"><?php echo $e->getDescription(); ?></p>
                                                <?php } ?>
                                                <ul class="exceptionErrorDetails">
+                                                       <li>
+                                                               <p class="exceptionFieldTitle">Error Type<span class="exceptionColon">:</span></p>
+                                                               <p class="exceptionFieldValue"><?php echo StringUtil::encodeHTML(get_class($e)); ?></p>
+                                                       </li>
                                                        <li>
                                                                <p class="exceptionFieldTitle">Error Message<span class="exceptionColon">:</span></p>
                                                                <p class="exceptionFieldValue"><?php echo StringUtil::encodeHTML($e->getMessage()); ?></p>