Catch AccountNotFoundException and show 404 page
This commit is contained in:
parent
930726432e
commit
19b8075e3c
2 changed files with 41 additions and 5 deletions
14
templates/account_404.html.twig
Normal file
14
templates/account_404.html.twig
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{% extends "base.html.twig" %}
|
||||
|
||||
{% block title %}Account not found{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Account not found</h2>
|
||||
|
||||
<div class="error_box">
|
||||
<h4>Error</h4>
|
||||
<p>The account with the ID {{ id }} was not found.</p>
|
||||
</div>
|
||||
|
||||
<p>Go back to <a href="/accounts">account list</a>.</p>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue