Skip to content

Allow handling ErrorCode from outgoing_handler::handle#121

Merged
pchickey merged 3 commits intobytecodealliance:mainfrom
tomasol:handle-error-code
Feb 18, 2026
Merged

Allow handling ErrorCode from outgoing_handler::handle#121
pchickey merged 3 commits intobytecodealliance:mainfrom
tomasol:handle-error-code

Conversation

@tomasol
Copy link
Contributor

@tomasol tomasol commented Feb 15, 2026

When the host in WasiHttpView::send_request returns http::types::ErrorCode, current code traps. This change allows the guest to handle ErrorCode error.

@pchickey
Copy link
Contributor

pchickey commented Feb 17, 2026

Thanks, thats a pretty big oversight! I guess we don't test it anywhere the handler fails... can you add a test that gets to some sort of failure here?

@tomasol
Copy link
Contributor Author

tomasol commented Feb 18, 2026

sure, added a test.

@pchickey pchickey merged commit 529fc0d into bytecodealliance:main Feb 18, 2026
5 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

Comments