mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
LibCore+Services: Make TCPServer propagate errors
This commit is contained in:
parent
143f820c68
commit
8600d89407
6 changed files with 59 additions and 70 deletions
|
@ -89,10 +89,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
client->start();
|
||||
};
|
||||
|
||||
if (!server->listen(ipv4_address.value(), port)) {
|
||||
warnln("Failed to listen on {}:{}", ipv4_address.value(), port);
|
||||
return 1;
|
||||
}
|
||||
TRY(server->listen(ipv4_address.value(), port));
|
||||
|
||||
outln("Listening on {}:{}", ipv4_address.value(), port);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue