diff --git a/src/erc7730/common/output.py b/src/erc7730/common/output.py index f4bebd8..544653c 100644 --- a/src/erc7730/common/output.py +++ b/src/erc7730/common/output.py @@ -116,7 +116,8 @@ def add(self, output: Output) -> None: context.append(f"{output.file}") if output.line is not None: context.append(f"line {output.line}") - log += ", ".join(context) + if context: + log += ", ".join(context) + ": " if output.title is not None: log += f"{output.title}: " log += f"[/{style}]{output.message}"