From 44cb0fa434b232be2a1a25c7b23aa376e7ef18e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 11 Jun 2023 00:20:27 +0200 Subject: [PATCH] Added a more verbose error message in the case of a pretty generic Database DriverException --- .../bundles/TwigBundle/Exception/error500.html.twig | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/templates/bundles/TwigBundle/Exception/error500.html.twig b/templates/bundles/TwigBundle/Exception/error500.html.twig index c709e189..40a418c2 100644 --- a/templates/bundles/TwigBundle/Exception/error500.html.twig +++ b/templates/bundles/TwigBundle/Exception/error500.html.twig @@ -19,13 +19,23 @@
  • Run yarn install and yarn build in Part-DB folder.
  • Run php bin/console cache:clear
  • - {% elseif exception.class == "Doctrine\\DBAL\\Exception\\InvalidFieldNameException" or exception.class == "Doctrine\\DBAL\\Exception\\TableNotFoundException" %} + {% elseif exception.class == "Doctrine\\DBAL\\Exception\\InvalidFieldNameException" + or exception.class == "Doctrine\\DBAL\\Exception\\TableNotFoundException" + %} Invalid or not existing database schema.

    Try following things:

    + {% elseif exception.class == "Doctrine\\DBAL\\Exception\\DriverException" %} + Error while executing database query.
    This is maybe caused by an old database schema.

    Try following things:

    + {% else %} You could try following things, if this error is unexpected: