mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Improved error pages
This commit is contained in:
parent
fefe36851e
commit
ff84fb8219
1 changed files with 3 additions and 3 deletions
|
@ -7,20 +7,20 @@
|
|||
|
||||
{% block admin_info %}
|
||||
{% if exception.class == "Doctrine\\DBAL\\Exception\\ConnectionException" %}
|
||||
<i>Can not connect to database.</i> Try follwing things:
|
||||
<b><i>Can not connect to database.</i></b><br>Try follwing things:<br>
|
||||
<ul>
|
||||
<li>Check if the database server is running</li>
|
||||
<li>Ensure that <code>DATABASE_URL</code> in <code>.env.local</code> is correct: database name, user and password must be correct.</li>
|
||||
<li>Ensure that the database user has access to the database.</li>
|
||||
</ul>
|
||||
{% elseif exception.class == "Twig\\Error\\RuntimeError" and 'manifest.json' in exception.message %}
|
||||
<i>Can not load frontend assets.</i> Try following things:
|
||||
<b><i>Can not load frontend assets.</i></b><br>Try following things:
|
||||
<ul>
|
||||
<li>Run <kbd>yarn install</kbd> and <kbd>yarn build</kbd> in Part-DB folder.</li>
|
||||
<li>Run <kbd>php bin/console cache:clear</kbd></li>
|
||||
</ul>
|
||||
{% elseif exception.class == "Doctrine\\DBAL\\Exception\\InvalidFieldNameException" or exception.class == "Doctrine\\DBAL\\Exception\\TableNotFoundException" %}
|
||||
<i>Invalid or not existing database schema.</i> Try following things:
|
||||
<b><i>Invalid or not existing database schema.</i></b><br>Try following things:
|
||||
<ul>
|
||||
<li>Check if the <code>DATABASE_URL</code> in <code>.env.local</code> is correct</li>
|
||||
<li>Run <kbd>php bin/console doctrine:migrations:migrate</kbd> to upgrade database schema</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue