summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-02-10 23:01:35 +0100
committerRory& <root@rory.gay>2026-02-10 23:01:35 +0100
commit23e44a5ce4a38e1fbc16ca8be9bfbfaedce77338 (patch)
treee92120d8f8927711ec9245d7859749ddb25cda4e
parentAdd discovery filtering (diff)
downloadserver-ts-23e44a5ce4a38e1fbc16ca8be9bfbfaedce77338.tar.xz
Reword sqlite error
-rw-r--r--src/util/util/Database.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/util/util/Database.ts b/src/util/util/Database.ts

index 52168e9a..805a9c18 100644 --- a/src/util/util/Database.ts +++ b/src/util/util/Database.ts
@@ -50,7 +50,14 @@ if (!isHeadlessProcess) { let hasWarnedSqlite = false; if (isSqlite && !hasWarnedSqlite) { hasWarnedSqlite = true; - console.log(`[Database] ${red(`You are running sqlite! Please keep in mind that we recommend setting up a dedicated database!`)}`); + console.log( + `[Database] ${red(`You do not have a database configured. This implies that it will try to use SQLite, which has been broken for a while and is unlikely to see a real fix any time soon.`)}`, + ); + console.log(`[Database] ${red(`Please set up a PostgreSQL database instead: https://docs.spacebar.chat/setup/server/database/.`)}`); + console.log( + `[Database] ${red(`Alternatively, if you're able to install Nix (except MacOSX), and are trying to run a quick and dirty localhost instance: nix run .\\#testVm.config.system.build.vm, then open a client and connect to http://localhost:8080`)}`, + ); + console.log(`[Database] ${red(`If you would like to try *anyways*, see the error below:`)}`); try { const _ = require("sqlite3"); } catch (e) {