diff --git a/src/rougail/annotator/param.py b/src/rougail/annotator/param.py index 9fa5404b..adc82747 100644 --- a/src/rougail/annotator/param.py +++ b/src/rougail/annotator/param.py @@ -87,7 +87,7 @@ class ParamAnnotator: elif param.type == 'index': for target in obj.target: if not self.objectspace.paths.is_follower(target.name.path): - msg = _(f'"{param.type}" parameter cannot be set with target "{target.name}"' + msg = _(f'"{param.type}" parameter cannot be set with target "{target.name.name}"' f' which is not a follower variable') raise DictConsistencyError(msg, 60, obj.xmlfiles) pass diff --git a/tests/dictionaries/80no_leadership_index/00-base.xml b/tests/dictionaries/80no_leadership_index/00-base.xml new file mode 100644 index 00000000..dcfb3023 --- /dev/null +++ b/tests/dictionaries/80no_leadership_index/00-base.xml @@ -0,0 +1,13 @@ + + + + + + + + + + my_variable + + + diff --git a/tests/dictionaries/80no_leadership_index/__init__.py b/tests/dictionaries/80no_leadership_index/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/dictionaries/80no_leadership_index/errno_60 b/tests/dictionaries/80no_leadership_index/errno_60 new file mode 100644 index 00000000..e69de29b