Add context for what's bad

This commit is contained in:
Eric Eastwood committed 2026-04-14 15:07:47 -05:00
1 parent 4b1f54f9de
commit 8d5cb566b1
1 file changed
+1 -1
+1 -1
View File
@@ -388,7 +388,7 @@ pub fn build_listeners(
HttpBindConfig::Address { address } => {
let addr: SocketAddr = address
.parse()
.context("could not parse listener address")?;
.with_context(|| format!("could not parse listener address {address}"))?;
let listener = TcpListener::bind(addr).context("could not bind address")?;
listener.set_nonblocking(true)?;
listener.try_into()?