summaryrefslogtreecommitdiff
path: root/Services/TelnetServer
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-28 21:59:13 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-28 22:14:23 +0200
commitf88a7cd4e127baf6bdf1161c6867c6953ee4cc19 (patch)
tree81a0b27bded7c1943457269e9fe801f7ef013d87 /Services/TelnetServer
parentd79194d87f871c821411de9eb50a578716d9bec7 (diff)
downloadserenity-f88a7cd4e127baf6bdf1161c6867c6953ee4cc19.zip
LibCore: Make TCPServer::listen() report failure instead of asserting
Diffstat (limited to 'Services/TelnetServer')
-rw-r--r--Services/TelnetServer/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Services/TelnetServer/main.cpp b/Services/TelnetServer/main.cpp
index 3fd26aff42..3e77a8e345 100644
--- a/Services/TelnetServer/main.cpp
+++ b/Services/TelnetServer/main.cpp
@@ -126,7 +126,7 @@ int main(int argc, char** argv)
}
if (!server->listen({}, port)) {
- perror("listen");
+ warnf("Listening on 0.0.0.0:{} failed", port);
exit(1);
}