[BUGFIX] Ensure to properly catch any connection exception 21/60421/2
authorBenni Mack <benni@typo3.org>
Tue, 9 Apr 2019 02:23:44 +0000 (04:23 +0200)
committerTobi Kretschmann <tobi@tobishome.de>
Wed, 10 Apr 2019 07:05:26 +0000 (09:05 +0200)
commit44a99315f369234b2eb1aa918aa2f7df8c16def0
treeb3b891134c4d1b1ac10a1a12d719ce4c22e744ba
parentccfdc567b3dd8bda35a34f3bbc7007576620ece0
[BUGFIX] Ensure to properly catch any connection exception

When e.g. a corrupt Database Connection is available
(MySQL down) and no connection is established, the Runtime
Exception should be caught as well.

In addition, the $message is more generic to avoid
any additional output for the end-users.

Resolves: #87993
Releases: master, 9.5
Change-Id: I2495426930d3fab841ff1632d778a945e73b521d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60421
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Tobi Kretschmann <tobi@tobishome.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Tobi Kretschmann <tobi@tobishome.de>
typo3/sysext/frontend/Classes/Middleware/TypoScriptFrontendInitialization.php