From 95a8b5c5be9ccb8225a9f6d48f24c48e16a0dd49 Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Wed, 21 Jul 2021 00:05:35 +0200 Subject: [PATCH] Add help link and short explanation for failing migrations See #1419 Signed-off-by: Erik Michelson --- lib/models/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/models/index.js b/lib/models/index.js index 4558b25e7..a8a972f97 100644 --- a/lib/models/index.js +++ b/lib/models/index.js @@ -82,7 +82,10 @@ db.runMigrations = async function runMigrations () { // exit in case of unsuccessful migrations await umzug.up().catch(error => { logger.error(error) - logger.error('Database migration failed. Exiting…') + logger.error(`Database migration failed. +This can be the result of upgrading from quite old versions and requires manual database intervention. +See https://docs.hedgedoc.org/guides/migration-troubleshooting/ for help. +Exiting…`) process.exit(1) }) logger.info('All migrations performed successfully')