mirror of
https://github.com/ekzhang/bore.git
synced 2024-12-22 21:25:47 +07:00
Fix minor bug in server error handling
This commit is contained in:
parent
9a8fc8ec44
commit
f00281f2dc
@ -73,7 +73,11 @@ impl Server {
|
||||
Ok(listener) => listener,
|
||||
Err(_) => {
|
||||
warn!(?port, "could not bind to local port");
|
||||
send_json(&mut stream, "port already in use").await?;
|
||||
send_json(
|
||||
&mut stream,
|
||||
ServerMessage::Error("port already in use".into()),
|
||||
)
|
||||
.await?;
|
||||
return Ok(());
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user