mirror of
https://github.com/ThomasGsp/HyperProxmox.git
synced 2025-02-13 03:32:16 +00:00
Clean code
This commit is contained in:
parent
672ca5b06b
commit
34919ab66e
1 changed files with 1 additions and 1 deletions
|
@ -523,7 +523,7 @@ class DbConn
|
||||||
$this->conn = new PDO('mysql:host=' . $host . ';dbname=' . $db_name . ';charset=utf8', $username, $password);
|
$this->conn = new PDO('mysql:host=' . $host . ';dbname=' . $db_name . ';charset=utf8', $username, $password);
|
||||||
$this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
$this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (Exception $e) {
|
||||||
error_log("Database connection error:".$e);
|
error_log("Database connection error:".$e);
|
||||||
die('Database connection error');
|
die('Database connection error');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue