diff --git a/src/rougail/annotator/variable.py b/src/rougail/annotator/variable.py index 13f277ba2..d686c1cb5 100644 --- a/src/rougail/annotator/variable.py +++ b/src/rougail/annotator/variable.py @@ -164,7 +164,7 @@ class Annotator(Walk): # pylint: disable=R0903 if hasattr(variable, 'value'): for idx, value in enumerate(variable.value): if not hasattr(value, 'name') and not hasattr(value, 'type'): - msg = 'value without value, if you want the value None, set value type to nil' + msg = f'variable "{variable.name}" has a value without text, if you want the value None, set value type to nil' raise DictConsistencyError(msg, 95, value.xmlfiles) if not hasattr(value, 'type'): value.type = variable.type