mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-10-23 10:53:37 +00:00
Add context for what's bad
This commit is contained in:
1 parent
4b1f54f9de
commit
8d5cb566b1
1 file changed
+1
-1
@@ -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()?
|
||||
|
||||
Reference in new issue
Block a user