2 parents d18c369 + 9fbd88f commit 3a0e592Copy full SHA for 3a0e592
1 file changed
tide-core/src/app.rs
@@ -260,11 +260,9 @@ impl<State: Send + Sync + 'static> App<State> {
260
.next()
261
.ok_or(std::io::ErrorKind::InvalidInput)?;
262
263
- // TODO: propagate the error from hyper
264
http_service_hyper::serve(self.into_http_service(), addr)
265
.await
266
- .ok();
267
- Ok(())
+ .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))
268
}
269
270
0 commit comments