[DOCS] Better error message for strict override variable fields (#452)
* [DOCS] Better error message for strict override variable fields * fix unit test
This commit is contained in:
parent
4ba41c757c
commit
9b90c367a5
2 changed files with 5 additions and 2 deletions
|
|
@ -213,8 +213,9 @@ class OverridesStringFormatterValidator(StringFormatterValidator):
|
|||
"""
|
||||
|
||||
_variable_not_found_error_msg_formatter = (
|
||||
"Override variable '{variable_name}' does not exist. "
|
||||
"Available override variables: {available_fields}"
|
||||
"Override variable '{variable_name}' does not exist. For this field, ensure your override "
|
||||
"variable does not contain any source variables - it is a requirement that this be a "
|
||||
"static string. Available override variables: {available_fields}"
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -110,6 +110,8 @@ class TestStringFormatterValidator(object):
|
|||
if string_formatter_class == OverridesStringFormatterValidator:
|
||||
expected_error_msg = (
|
||||
f"Validation error in test: Override variable 'bah_humbug' does not exist. "
|
||||
f"For this field, ensure your override variable does not contain any source "
|
||||
f"variables - it is a requirement that this be a static string. "
|
||||
f"Available override variables: {', '.join(sorted(variable_dict.keys()))}"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue