diff options
| author | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2024-12-16 09:27:31 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-12-16 09:27:31 +0000 |
| commit | b141343bcdff3b992ed95e8106002ec54020d81a (patch) | |
| tree | bb892d06c51ee311c03f1319c4137384943b8940 /lib | |
| parent | a0a98156f47bc1e1ed912dbc386430caf1b890a4 (diff) | |
Resolve "Meldung bei fehlender Datenbankverbindung anpassen"
Closes #5012
Merge request studip/studip!3767
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/bootstrap.php | 6 |
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 |
