mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Exit on connection failure
This commit is contained in:
parent
edea8056fa
commit
6ab6d09db9
@ -55,7 +55,7 @@ final class Settings {
|
||||
try {
|
||||
$this->conn = new PDO($dsn, $username, $password);
|
||||
} catch (PDOException $e) {
|
||||
echo 'Connection failed: ' . $e->getMessage();
|
||||
die('Connection failed: ' . $e->getMessage());
|
||||
}
|
||||
if ($driver === 'pgsql') {
|
||||
$this->conn->query("SET NAMES 'UTF8';");
|
||||
|
Loading…
x
Reference in New Issue
Block a user