-
- Downloads
Better formatting for config errors from modules (#8874)
The idea is that the parse_config method of extension modules can raise either a ConfigError or a JsonValidationError, and it will be magically turned into a legible error message. There's a few components to it: * Separating the "path" and the "message" parts of a ConfigError, so that we can fiddle with the path bit to turn it into an absolute path. * Generally improving the way ConfigErrors get printed. * Passing in the config path to load_module so that it can wrap any exceptions that get caught appropriately.
Showing
- changelog.d/8874.feature 1 addition, 0 deletionschangelog.d/8874.feature
- synapse/app/homeserver.py 42 additions, 4 deletionssynapse/app/homeserver.py
- synapse/config/_base.py 12 additions, 2 deletionssynapse/config/_base.py
- synapse/config/_base.pyi 5 additions, 2 deletionssynapse/config/_base.pyi
- synapse/config/_util.py 24 additions, 11 deletionssynapse/config/_util.py
- synapse/config/oidc_config.py 1 addition, 1 deletionsynapse/config/oidc_config.py
- synapse/config/password_auth_providers.py 3 additions, 2 deletionssynapse/config/password_auth_providers.py
- synapse/config/repository.py 4 additions, 2 deletionssynapse/config/repository.py
- synapse/config/room_directory.py 1 addition, 1 deletionsynapse/config/room_directory.py
- synapse/config/saml2_config.py 1 addition, 1 deletionsynapse/config/saml2_config.py
- synapse/config/spam_checker.py 5 additions, 4 deletionssynapse/config/spam_checker.py
- synapse/config/third_party_event_rules.py 3 additions, 1 deletionsynapse/config/third_party_event_rules.py
- synapse/util/module_loader.py 58 additions, 6 deletionssynapse/util/module_loader.py
changelog.d/8874.feature
0 → 100644
Please register or sign in to comment