Skip to content

feat: include SSH stderr output in transfer error messages - #2952

Merged
oferchen merged 1 commit into
masterfrom
feat/ssh-stderr-error-reporting
Mar 22, 2026
Merged

oferchen merged 1 commit into
masterfrom
feat/ssh-stderr-error-reporting

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Forward captured SSH stderr output to users in error messages when the remote process exits with a non-zero status
  • Uses wait_with_stderr() to collect stderr after child exit, then appends formatted output via format_stderr_context() helper
  • Covers both single-remote SSH transfers and remote-to-remote (proxy) transfers, combining stderr from both sides in proxy mode

Closes #1034

Test plan

  • Verify format_stderr_context unit tests pass (empty, whitespace-only, single-line, multi-line, invalid UTF-8)
  • CI: fmt + clippy, nextest on all platforms (Linux, macOS, Windows)
  • Manual: SSH transfer to unreachable host shows Permission denied or Connection refused in error output
  • Manual: SSH transfer with bad remote path shows remote rsync error in output

@oferchen
oferchen merged commit 95a4bf6 into master Mar 22, 2026
5 of 10 checks passed
@oferchen
oferchen deleted the feat/ssh-stderr-error-reporting branch March 22, 2026 09:38
@github-actions github-actions Bot added the enhancement New feature or request label Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant