Skip to content

Commit

Permalink
Merge pull request #261 from fairingrey/propagate_hyper_error
Browse files Browse the repository at this point in the history
Propagate hyper error on serve failure
  • Loading branch information
fairingrey authored May 23, 2019
2 parents d18c369 + 9fbd88f commit 3a0e592
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tide-core/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,9 @@ impl<State: Send + Sync + 'static> App<State> {
.next()
.ok_or(std::io::ErrorKind::InvalidInput)?;

// TODO: propagate the error from hyper
http_service_hyper::serve(self.into_http_service(), addr)
.await
.ok();
Ok(())
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))
}
}

Expand Down

0 comments on commit 3a0e592

Please sign in to comment.