Skip to content

Commit 9fbd88f

Browse files
committed
propagate hyper error on serve failure
1 parent 8b667fe commit 9fbd88f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tide-core/src/app.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,9 @@ impl<State: Send + Sync + 'static> App<State> {
257257
.next()
258258
.ok_or(std::io::ErrorKind::InvalidInput)?;
259259

260-
// TODO: propagate the error from hyper
261260
http_service_hyper::serve(self.into_http_service(), addr)
262261
.await
263-
.ok();
264-
Ok(())
262+
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))
265263
}
266264
}
267265

0 commit comments

Comments
 (0)