Skip to content

fix: add role trailers to error messages in transfer and daemon - #2758

Merged
oferchen merged 2 commits into
masterfrom
fix/error-role-trailers
Mar 17, 2026
Merged

oferchen merged 2 commits into
masterfrom
fix/error-role-trailers

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Add role trailers ([sender=VERSION], [receiver=VERSION], [daemon=VERSION]) to all eprintln! error and warning messages in the transfer and daemon crates, matching upstream rsync's log.c:rwrite() behavior.
  • Create role_trailer module in the transfer crate providing sender(), receiver(), and daemon() helper functions.
  • Update 10 eprintln! call sites across generator (3), receiver pipeline (4), transfer lib (1), and daemon (4).

Test plan

  • CI fmt+clippy passes (new module has #[deny(missing_docs)])
  • nextest passes (6 unit tests in role_trailer module)
  • Verify role trailer format matches upstream: [role=VERSION]
  • Interop tests still pass (trailers are stderr-only, no wire impact)

@github-actions github-actions Bot added the bug Something isn't working label Mar 16, 2026
@oferchen
oferchen force-pushed the fix/error-role-trailers branch from a41b425 to 4ff11e0 Compare March 17, 2026 01:19
@oferchen
oferchen force-pushed the fix/error-role-trailers branch from 4ff11e0 to 1f2287c Compare March 17, 2026 04:05
@oferchen
oferchen merged commit 5d3ceae into master Mar 17, 2026
30 of 31 checks passed
@oferchen
oferchen deleted the fix/error-role-trailers branch March 17, 2026 04:48
oferchen added a commit that referenced this pull request May 1, 2026
* fix: add role trailers to error messages in transfer and daemon crates

* fix: suppress dead_code warning on daemon role trailer function
oferchen added a commit that referenced this pull request May 5, 2026
* fix: add role trailers to error messages in transfer and daemon crates

* fix: suppress dead_code warning on daemon role trailer function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant