Skip to content

Fix #1714 putAccelerated errors not being caught#1715

Open
reidsunderland wants to merge 2 commits into
developmentfrom
issue1714
Open

Fix #1714 putAccelerated errors not being caught#1715
reidsunderland wants to merge 2 commits into
developmentfrom
issue1714

Conversation

@reidsunderland

Copy link
Copy Markdown
Member

Issue #1714 describes the problem and has example logs. If an accelerated upload failed (putAccelerated) the error was not caught. Flow would think the transfer succeeded and move on.

I replaced the Popen call and return code checking inside the transfer classes with a wrapper method. This reduces some repeated code and captures stderr for better error logging.

getAccelerated worked fine, but I changed it to use the wrapper function too. Because the download code in Flow correctly deals with -1 returned by getAccelerated, I kept that to minimize changes (rather than throwing the Exception up to Flow like putAccelerated does).

@github-actions

Copy link
Copy Markdown

Test Results

360 tests   359 ✅  1m 50s ⏱️
  1 suites    1 💤
  1 files      0 ❌

Results for commit b7f3340.

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