Skip to content
Snippets Groups Projects
Unverified Commit b28bfd90 authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

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.
parent 1baa8953
Loading
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment