Skip to content

Clean up address parse error display#17

Merged
maxholman merged 2 commits into
block65:mainfrom
maxholman:fix/clean-error-display
Feb 20, 2026
Merged

Clean up address parse error display#17
maxholman merged 2 commits into
block65:mainfrom
maxholman:fix/clean-error-display

Conversation

@maxholman

Copy link
Copy Markdown
Contributor

Clean up address parse error display

Scope

CLI address parsing and error display — crates/cli

Out of scope

Any changes to parsing logic or valid address formats

Why

When an invalid address is provided (e.g. --connect attacker),
the error appears twice — once as a bullet and once as Error:. Should
appear once, without duplication.

maxholman and others added 2 commits February 20, 2026 18:16
- Remove redundant crate::error!/printer.print duplication in exit node
  error handler; route through printer.error() for readline safety
- Add Printer::error/warn/info methods that format via Output machinery,
  keeping prefix and colour consistent between REPL and headless output
- Fix Level::Error display from bare `-` to `[-]` for visual consistency
  with [+], [!], [~]
- Replace duplicate crate::info! + printer.print pairs in entry server
  loop with single printer.info()/printer.error() calls

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace ambiguous "(peer: {name})" label with "as {name}" in startup
messages. The node was referring to its own identity as "peer", which
reads as if it is describing a remote connection.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@maxholman
maxholman merged commit fe833f3 into block65:main Feb 20, 2026
4 checks passed
maxholman added a commit that referenced this pull request Mar 15, 2026
- #23: debug-level TCP relay connect/close logs with byte counts on exit node
- #25: PskFailTracker deduplicates PSK failure logs per source IP (x1, x2, x4…)
- #27: log "PSK authentication configured" on startup when PSK is set
- #17: startup banner shows CLI binary version + build timestamp/git hash + dirty flag
- Remove double-warn on PSK failure (validate_handshake + caller)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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