Skip to content

Commit 3a0e592

Browse files
authored
Merge pull request #261 from fairingrey/propagate_hyper_error
Propagate hyper error on serve failure
2 parents d18c369 + 9fbd88f commit 3a0e592

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
@@ -260,11 +260,9 @@ impl<State: Send + Sync + 'static> App<State> {
260260
.next()
261261
.ok_or(std::io::ErrorKind::InvalidInput)?;
262262

263-
// TODO: propagate the error from hyper
264263
http_service_hyper::serve(self.into_http_service(), addr)
265264
.await
266-
.ok();
267-
Ok(())
265+
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))
268266
}
269267
}
270268

0 commit comments

Comments
 (0)