Add hint to docker logs to error page

This commit is contained in:
Jan Böhmer 2023-06-11 00:12:24 +02:00
parent 377e2eb613
commit 13814695ac
2 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@
{% block admin_info %}
You could try to do following things, if this error is unexpected:
<ul>
<li>Check <code>var/log/prod.log</code> for additional informations</li>
<li>Check <code>var/log/prod.log</code> (or <code>docker logs</code> when Part-DB is running inside a docker container) for additional informations</li>
<li>Run <kbd>php bin/console cache:clear</kbd> to clear cache</li>
</ul>
{% endblock %}

View file

@ -22,14 +22,14 @@
{% elseif exception.class == "Doctrine\\DBAL\\Exception\\InvalidFieldNameException" or exception.class == "Doctrine\\DBAL\\Exception\\TableNotFoundException" %}
<b><i>Invalid or not existing database schema.</i></b><br><p>Try following things:</p>
<ul>
<li>Check if the <code>DATABASE_URL</code> in <code>.env.local</code> is correct</li>
<li>Check if the <code>DATABASE_URL</code> in <code>.env.local</code> (or docker configure) is correct</li>
<li>Run <kbd>php bin/console doctrine:migrations:migrate</kbd> to upgrade database schema</li>
<li>Run <kbd>php bin/console cache:clear</kbd></li>
</ul>
{% else %}
You could try following things, if this error is unexpected:
<ul>
<li>Check <code>var/log/prod.log</code> for additional informations</li>
<li>Check <code>var/log/prod.log</code> (or <code>docker logs</code> when Part-DB is running inside a docker container) for additional informations</li>
<li>Run <kbd>php bin/console cache:clear</kbd> to clear cache</li>
</ul>
{% endif %}