From 895b751c92775f7610869a205d58a0a7c98632e0 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 22 Nov 2024 14:27:02 +0100 Subject: Capitalize some more logging and exceptions --- common/network/Socket.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/network/Socket.cxx') diff --git a/common/network/Socket.cxx b/common/network/Socket.cxx index 879a63d0..0a35e267 100644 --- a/common/network/Socket.cxx +++ b/common/network/Socket.cxx @@ -55,7 +55,7 @@ void network::initSockets() { WSADATA initResult; if (WSAStartup(requiredVersion, &initResult) != 0) - throw rdr::socket_error("unable to initialise Winsock2", errorNumber); + throw rdr::socket_error("Unable to initialise Winsock2", errorNumber); #else signal(SIGPIPE, SIG_IGN); #endif @@ -163,7 +163,7 @@ Socket* SocketListener::accept() { // Accept an incoming connection if ((new_sock = ::accept(fd, nullptr, nullptr)) < 0) - throw rdr::socket_error("unable to accept new connection", errorNumber); + throw rdr::socket_error("Unable to accept new connection", errorNumber); // Create the socket object & check connection is allowed Socket* s = createSocket(new_sock); @@ -181,7 +181,7 @@ void SocketListener::listen(int sock) if (::listen(sock, 5) < 0) { int e = errorNumber; closesocket(sock); - throw rdr::socket_error("unable to set socket to listening mode", e); + throw rdr::socket_error("Unable to set socket to listening mode", e); } fd = sock; -- cgit v1.2.3