mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-13 03:00:46 -05:00
Improve diagnostics on database upgrade failure (#6570)
`Failed to upgrade database` is not helpful, and it's unlikely that UPGRADE.rst has anything useful.
This commit is contained in:
parent
0b794cbd7b
commit
bca30cefee
3 changed files with 7 additions and 8 deletions
|
|
@ -342,13 +342,8 @@ def setup(config_options):
|
|||
hs.setup()
|
||||
except IncorrectDatabaseSetup as e:
|
||||
quit_with_error(str(e))
|
||||
except UpgradeDatabaseException:
|
||||
sys.stderr.write(
|
||||
"\nFailed to upgrade database.\n"
|
||||
"Have you checked for version specific instructions in"
|
||||
" UPGRADES.rst?\n"
|
||||
)
|
||||
sys.exit(1)
|
||||
except UpgradeDatabaseException as e:
|
||||
quit_with_error("Failed to upgrade database: %s" % (e,))
|
||||
|
||||
hs.setup_master()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue