Skip to content

Commit

Permalink
fix: fix console output formatting (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicoulaud-ledger authored Oct 31, 2024
1 parent 6ffc2ea commit 6c0e1ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/erc7730/common/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 6c0e1ba

Please sign in to comment.