Skip to content

fix: remove duplicated "Error:" prefix from error messages - #27

Merged
dnstelecom merged 1 commit into
mainfrom
fix/error-message-double-prefix
Oct 28, 2026
Merged

dnstelecom merged 1 commit into
mainfrom
fix/error-message-double-prefix

Conversation

@dnstelecom

Copy link
Copy Markdown
Owner

main() returns anyhow::Result, so the standard library already prefixes the reported error with "Error: ". CLI validation messages that carried their own "Error: " prefix were therefore printed as "Error: Error: ...". The input open failure log line had the same redundant prefix next to the ERROR level label.

Drop the literal prefix from these messages and add an end-to-end test that checks the rendered stderr line.

main() returns anyhow::Result, so the standard library already prefixes
the reported error with "Error: ". CLI validation messages that carried
their own "Error: " prefix were therefore printed as "Error: Error: ...".
The input open failure log line had the same redundant prefix next to the
ERROR level label.

Drop the literal prefix from these messages and add an end-to-end test
that checks the rendered stderr line.
@dnstelecom
dnstelecom merged commit 93fcb6e into main Oct 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant