Skip to content

Commit fd0a5ae

Browse files
committed
improve logging: clarify mismatch warnings for composite element references
1 parent 482d83a commit fd0a5ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/generator/pydifact_generator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,9 +522,9 @@ def parse_composite_dir(text, only_code: str | None = None):
522522
and title != data_element_specs[code].title
523523
):
524524
logger.warning(
525-
f"{composite.code} composite element has a reference to"
526-
f" {code} data element with wrong title: '{title}' != "
527-
f"'{data_element_specs[code].title}'"
525+
f"{composite.code}.{code} reference title does not match"
526+
f" {code} title: "
527+
f"'{title}' != '{data_element_specs[code].title}'"
528528
)
529529

530530
# If repr_line is the same as in the data element description,

0 commit comments

Comments
 (0)