mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Clarify error message when plugin config parsers raise an error (#8492)
This turns: Failed to parse config for 'myplugin': Exception('error message') into: Failed to parse config for 'myplugin': error message.
This commit is contained in:
parent
1baa895310
commit
b28bfd905d
1
changelog.d/8492.misc
Normal file
1
changelog.d/8492.misc
Normal file
@ -0,0 +1 @@
|
||||
Clarify error message when plugin config parsers raise an error.
|
@ -36,7 +36,7 @@ def load_module(provider):
|
||||
try:
|
||||
provider_config = provider_class.parse_config(provider.get("config"))
|
||||
except Exception as e:
|
||||
raise ConfigError("Failed to parse config for %r: %r" % (provider["module"], e))
|
||||
raise ConfigError("Failed to parse config for %r: %s" % (provider["module"], e))
|
||||
|
||||
return provider_class, provider_config
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user