Make minimal error pages less technical.

This commit is contained in:
Buster Neece 2023-12-18 13:46:54 -06:00
parent eefadf7b43
commit 510660b5d1
No known key found for this signature in database
2 changed files with 2 additions and 14 deletions

View File

@ -18,17 +18,11 @@ $filePath = Symfony\Component\Filesystem\Path::makeRelative(
<div class="public-page">
<div class="card p-3">
<div class="card-body">
<h2 class="display-1">500</h2>
<h2 class="display-4">Error</h2>
<h4><?= $this->e($exception->getMessage()) ?></h4>
<p class="text-muted card-text">
<?= $this->e($filePath) ?> : L<?= $exception->getLine() ?>
</p>
<div class="block-buttons">
<a role="button" title="<?= __('Dashboard') ?>" class="btn btn-login btn-primary" href="/">
Home
</a>
</div>
</div>
</div>
</div>

View File

@ -10,17 +10,11 @@ $this->layout('minimal', [
<div class="public-page">
<div class="card p-3">
<div class="card-body">
<h2 class="display-1"><?= $this->e($exception->getCode()) ?></h2>
<h2 class="display-4">Error</h2>
<h4><?= $this->e($exception->getMessage()) ?></h4>
<p class="text-muted card-text">
<?= $this->e($exception->getDescription()) ?>
</p>
<div class="block-buttons">
<a role="button" title="<?= __('Dashboard') ?>" class="btn btn-login btn-primary" href="/">
Home
</a>
</div>
</div>
</div>
</div>