diff --git a/templates/system/error_general.phtml b/templates/system/error_general.phtml index 61940cd717..26ed34b0c7 100644 --- a/templates/system/error_general.phtml +++ b/templates/system/error_general.phtml @@ -1,17 +1,27 @@ layout('minimal', [ 'title' => 'Error', - 'page_class' => 'error-content' + 'page_class' => 'error-content', ]); + +$filePath = Symfony\Component\Filesystem\Path::makeRelative( + $exception->getFile(), + $environment->getBaseDirectory() +); ?>
- = $exception->getMessage() ?>
- = basename($exception->getFile()) ?> : = $exception->getLine() ?>
+
+ = $this->e($filePath) ?> : L= $exception->getLine() ?>
diff --git a/templates/system/error_http.phtml b/templates/system/error_http.phtml index d2c4e3eec2..9ea51b0230 100644 --- a/templates/system/error_http.phtml +++ b/templates/system/error_http.phtml @@ -10,11 +10,13 @@ $this->layout('minimal', [=$exception->getDescription()?>
++ = $this->e($exception->getDescription()) ?> +
- home