Skip to content

Commit 9d65d44

Browse files
nipunn1313Convex, Inc.
authored andcommitted
Add more useful error message to if serve_http fails. (#43064)
GitOrigin-RevId: d8d6aacd5b7720c6ff06449510fc0e39d64ed1b8
1 parent 8f98c35 commit 9d65d44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/common/src/http/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,9 @@ impl ConvexHttpService {
677677
}
678678
let make_svc = router.into_make_service_with_connect_info::<SocketAddr>();
679679
tracing::info!("{} listening on {addr}", self.service_name);
680-
serve_http(make_svc, addr, shutdown).await
680+
serve_http(make_svc, addr, shutdown)
681+
.await
682+
.with_context(|| format!("Could not start {} on {addr}", self.service_name))
681683
}
682684

683685
/// Apply `middleware_fn` to incoming requests *before* passing them to

0 commit comments

Comments
 (0)