diff --git a/src/View/ErrorRenderer/HtmlTraceAbleErrorRenderer.php b/src/View/ErrorRenderer/HtmlTraceAbleErrorRenderer.php
index 31b2c86..32bc6e9 100644
--- a/src/View/ErrorRenderer/HtmlTraceAbleErrorRenderer.php
+++ b/src/View/ErrorRenderer/HtmlTraceAbleErrorRenderer.php
@@ -346,10 +346,13 @@ private function exceptionDetail(Throwable $exception): string
$countLine = 1;
$traceCount = 0;
$errorFile = Consolidation::protectMessage(
+ $exception->getFile(),
+ $this->rootDirectory
+ );
+ $message = Consolidation::protectMessage(
$exception->getMessage(),
$this->rootDirectory
);
-
for (; $countLine <= 5; $countLine++) {
if ($countLine === 5) {
$errorLineEditor .= "$countLine";
@@ -371,7 +374,7 @@ private function exceptionDetail(Throwable $exception): string
);
$mainErrorInfo .= sprintf(
"
Message: %s
\n",
- htmlentities($exception->getMessage())
+ htmlentities($message)
);
$mainErrorInfo .= '
';
@@ -379,7 +382,7 @@ private function exceptionDetail(Throwable $exception): string
$tabNavigationTop = '';
$tabNavigationTop .= 'Error Details';
$tabNavigationTop .= sprintf('%s', get_class($exception));
- $tabNavigationTop .= sprintf('%s', htmlentities($exception->getMessage()));
+ $tabNavigationTop .= sprintf('%s', htmlentities($message));
$tabNavigationTop .= '
';
$exists = false;
@@ -412,7 +415,7 @@ private function exceptionDetail(Throwable $exception): string
? (realpath($configFile)?:null)
: null;
$definedConfig = defined('CONFIG_FILE') && is_string(CONFIG_FILE)
- && file_exists(CONFIG_FILE)
+ && file_exists(CONFIG_FILE)
? realpath(CONFIG_FILE)?:null
: null;
$isCallstack = $exception instanceof MaximumCallstackExceeded