Skip to content

Commit e2fec3c

Browse files
committed
fix try/catch pb when db not exists
1 parent d87c963 commit e2fec3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Ubiquity/orm/reverse/DatabaseChecker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* This class is part of Ubiquity
1515
*
1616
* @author jcheron <[email protected]>
17-
* @version 1.0.0
17+
* @version 1.0.1
1818
* @package Ubiquity.dev
1919
*
2020
*/
@@ -46,7 +46,7 @@ public function checkDatabase(): bool {
4646
try {
4747
$this->db = DAO::getDatabase($this->dbOffset);
4848
return $this->databaseExist = isset($this->db) && $this->db->isConnected();
49-
} catch (\Error $e) {
49+
} catch (\Exception | \Error $e) {
5050
return $this->databaseExist = false;
5151
}
5252
}

0 commit comments

Comments
 (0)