Improve clarity of error message when database SSL disabled and file storage cannot be written

This commit is contained in:
Tom Moor
2023-09-27 09:07:49 -04:00
parent 2261514138
commit 86cb861ca7
3 changed files with 24 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ import { checkEnv, checkPendingMigrations } from "./utils/startup";
import { checkUpdates } from "./utils/updates";
import onerror from "./onerror";
import ShutdownHelper, { ShutdownOrder } from "./utils/ShutdownHelper";
import { sequelize } from "./storage/database";
import { checkConnection, sequelize } from "./storage/database";
import RedisAdapter from "./storage/redis";
import Metrics from "./logging/Metrics";
@@ -50,6 +50,7 @@ if (serviceNames.includes("collaboration")) {
// This function will only be called once in the original process
async function master() {
await checkConnection();
await checkEnv();
await checkPendingMigrations();