We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc8b380 commit 5f06e8bCopy full SHA for 5f06e8b
1 file changed
src/Cms.php
@@ -13,6 +13,7 @@
13
use CraftCms\Cms\Support\Facades\Sites;
14
use CraftCms\Cms\Support\Facades\Updates;
15
use CraftCms\Cms\Support\Facades\Users;
16
+use Illuminate\Database\SQLiteDatabaseDoesNotExistException;
17
use Illuminate\Http\Request;
18
use Illuminate\Support\Facades\Auth;
19
use Illuminate\Support\Facades\Context;
@@ -149,7 +150,7 @@ public static function isInstalled(bool $strict = false): bool
149
150
151
try {
152
DB::connection()->getPdo();
- } catch (PDOException $e) {
153
+ } catch (PDOException|SQLiteDatabaseDoesNotExistException $e) {
154
if (! app()->runningInConsole()) {
155
Log::error('There was a problem connecting to the database: '.$e->getMessage(), [__METHOD__]);
156
report($e);
0 commit comments