Skip to content
Extraits de code Groupes Projets
Valider b395046d rédigé par Half-Shot's avatar Half-Shot
Parcourir les fichiers

Throw an error if legacy datastores are still defined

parent 952dc53a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -135,6 +135,12 @@ async function run() { ...@@ -135,6 +135,12 @@ async function run() {
} }
config.applyConfig(yaml.safeLoad(fs.readFileSync(configPath, "utf8"))); config.applyConfig(yaml.safeLoad(fs.readFileSync(configPath, "utf8")));
Log.Configure(config.logging); Log.Configure(config.logging);
if (config.database.roomStorePath || config.database.userStorePath) {
log.error("The keys 'roomStorePath' and/or 'userStorePath' is still defined in the config. " +
"Please see docs/bridge-migrations.md on " +
"https://github.com/Half-Shot/matrix-appservice-discord/");
throw Error("Bridge has legacy configuration options and is unable to start");
}
const registration = yaml.safeLoad(fs.readFileSync(registrationPath, "utf8")) as IAppserviceRegistration; const registration = yaml.safeLoad(fs.readFileSync(registrationPath, "utf8")) as IAppserviceRegistration;
setupLogging(); setupLogging();
const appservice = new Appservice({ const appservice = new Appservice({
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter