From 61569f37726d69cd6191112b0d8f6a6109a08337 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Fri, 28 Jul 2023 08:49:35 +0200 Subject: [PATCH] enhancement(src/rougail/annotator/variable.py) add variable name when test nil value --- src/rougail/annotator/variable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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