Skip to content

Comments

Handle JoinError in registry download task results#196

Merged
fibonacci1729 merged 1 commit intobytecodealliance:mainfrom
sumleo:fix/registry-join-error
Feb 17, 2026
Merged

Handle JoinError in registry download task results#196
fibonacci1729 merged 1 commit intobytecodealliance:mainfrom
sumleo:fix/registry-join-error

Conversation

@sumleo
Copy link
Contributor

@sumleo sumleo commented Feb 12, 2026

Summary

  • The unwrap() on JoinResult from spawned download tasks would panic if a task panicked or was cancelled
  • Now maps the JoinError to a RegistryDownloadFailure error variant instead of panicking

Test plan

  • Verified compilation succeeds
  • All existing tests pass (cargo test --workspace)
  • Note: Testing requires mocking the registry download infrastructure; the fix is a one-line change verified by code review

The unwrap() on the JoinResult from spawned download tasks would panic
if a task panicked or was cancelled. Now maps the JoinError to a proper
RegistryDownloadFailure error variant instead.
@fibonacci1729 fibonacci1729 merged commit 66908e3 into bytecodealliance:main Feb 17, 2026
7 checks 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.

2 participants