aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-12-16 09:27:31 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-12-16 09:27:31 +0000
commitb141343bcdff3b992ed95e8106002ec54020d81a (patch)
treebb892d06c51ee311c03f1319c4137384943b8940 /lib
parenta0a98156f47bc1e1ed912dbc386430caf1b890a4 (diff)
Resolve "Meldung bei fehlender Datenbankverbindung anpassen"
Closes #5012 Merge request studip/studip!3767
Diffstat (limited to 'lib')
-rw-r--r--lib/bootstrap.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bootstrap.php b/lib/bootstrap.php
index 2d4e2e8..c92f604 100644
--- a/lib/bootstrap.php
+++ b/lib/bootstrap.php
@@ -132,13 +132,13 @@ try {
'studip',
app(StudipPDO::class)
);
-} catch (PDOException $exception) {
+} catch (\PDOException $exception) {
if (Studip\ENV === 'development') {
throw $exception;
} else {
+ error_log($exception);
header('HTTP/1.1 500 Internal Server Error');
- die(sprintf('database connection %s failed', 'mysql:host=' . $GLOBALS['DB_STUDIP_HOST'] .
- ';dbname=' . $GLOBALS['DB_STUDIP_DATABASE']));
+ die(_('Momentan ist das Stud.IP System nicht erreichbar, bitte versuchen Sie es später noch einmal.'));
}
}
// set slave connection