summaryrefslogtreecommitdiff
path: root/classes/db.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-09-03 12:30:26 +0300
committerAndrew Dolgov <[email protected]>2018-09-03 12:30:26 +0300
commit01d22e255f7a026bb0b0324cde1d8a8756c84a20 (patch)
tree14ad41512aae1c32078ba564c11dd58223ea3935 /classes/db.php
parentde1b9acba1b27f5e745f9029de49e476b5cb6603 (diff)
PDO: switch error reporting to exceptions
Diffstat (limited to 'classes/db.php')
-rw-r--r--classes/db.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/db.php b/classes/db.php
index 96a888275..e9d9e8417 100644
--- a/classes/db.php
+++ b/classes/db.php
@@ -63,7 +63,7 @@ class Db
exit(101);
}
- $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
+ $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
if (DB_TYPE == "pgsql") {
@@ -102,4 +102,4 @@ class Db
return self::$instance->pdo;
}
-} \ No newline at end of file
+}