Skip to content

Commit 02ce897

Browse files
committed
Allow catching ErrorCode from outgoing_handler::handle
1 parent 3b97964 commit 02ce897

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/http/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl Client {
3030
let wasi_body = wasi_req.body().unwrap();
3131

3232
// 1. Start sending the request head
33-
let res = wasip2::http::outgoing_handler::handle(wasi_req, self.wasi_options()?).unwrap();
33+
let res = wasip2::http::outgoing_handler::handle(wasi_req, self.wasi_options()?)?;
3434

3535
let ((), body) = futures_lite::future::try_zip(
3636
async move {

0 commit comments

Comments
 (0)