From 4e651506cbd445f154d39aef933557f0634dd2e4 Mon Sep 17 00:00:00 2001 From: George Fotopoulos Date: Sun, 3 Dec 2023 18:13:46 +0200 Subject: [PATCH] Refactor Main.cpp --- src/Main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Main.cpp b/src/Main.cpp index 26d9284..6a71b44 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -93,7 +93,8 @@ int main(int argc, char *argv[]) { }); sockets.emplace(port, std::move(socket)); } catch (const boost::system::system_error &e) { - std::cerr << "Unknown Host" << std::endl; + std::cerr << "Error: Failed resolving " << host << "." << std::endl; + return 1; } } io_service.run();