Skip to content

Commit a6258f7

Browse files
committed
Adapt error message to make clearer what is wrong first before the context per review comment
1 parent 6dfac6f commit a6258f7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

exasol/toolbox/nox/plugin.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,13 @@ def plugin_manager(config) -> pluggy.PluginManager:
112112

113113
if not hasattr(config, plugin_attribute):
114114
raise AttributeError(
115-
"in the noxconfig.py file, the class Config should inherit "
116-
"from `exasol.toolbox.config.BaseConfig`. This is used to "
117-
f"set the default `{plugin_attribute}`. If the allowed "
118-
f"`{plugin_attribute} needs to differ in your project and is an "
119-
"input parameter (not property), you can set it in the PROJECT_CONFIG statement."
115+
f"""`{plugin_attribute}` is not defined in the `PROJECT_CONFIG`.
116+
To resolve this, check that the `PROJECT_CONFIG` in the `noxconfig.py`
117+
file is an instance of `exasol.toolbox.config.BaseConfig`. The
118+
`BaseConfig` sets many defaults. If the value for `{plugin_attribute}`
119+
needs to differ in your project and is an input parameter (not
120+
property), you can set it in the PROJECT_CONFIG statement.
121+
"""
120122
)
121123

122124
for plugin in getattr(config, plugin_attribute, ()):

0 commit comments

Comments
 (0)