Consistent error reporting for errors during the setup process
authorAlexander Ebert <ebert@woltlab.com>
Thu, 6 Dec 2018 15:47:03 +0000 (16:47 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 6 Dec 2018 15:47:03 +0000 (16:47 +0100)
Fixes #2784

wcfsetup/install.php

index 130e7e134ccd5c087d3d773372bb37c4c3347a72..5ac6487afc48e816aaa488e4f97138727b35646a 100644 (file)
@@ -340,7 +340,7 @@ class SystemException extends \Exception implements IPrintableException {
                        ?>
                        <div class="exceptionBoundary">
                                <p class="exceptionSubtitle"><?php if (!$e->getPrevious() && !$first) { echo "Original "; } else if ($e->getPrevious() && $first) { echo "Final "; } ?>Error</p>
-                               <?php if ($e instanceof SystemException && $e->getDescription()) { ?>
+                               <?php if (($e instanceof SystemException || $e instanceof \wcf\system\exception\SystemException) && $e->getDescription()) { ?>
                                        <p class="exceptionText"><?php echo $e->getDescription(); ?></p>
                                <?php } ?>
                                <ul class="exceptionErrorDetails">