diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-11-22 14:27:02 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-11-22 14:27:02 +0100 |
commit | 895b751c92775f7610869a205d58a0a7c98632e0 (patch) | |
tree | a2182b8a5ddee92e0d649968e50842572072addf /common/network/UnixSocket.cxx | |
parent | 9366d8e54c5ee1c2cfcf333a17b7fd4bdbd13993 (diff) | |
download | tigervnc-895b751c92775f7610869a205d58a0a7c98632e0.tar.gz tigervnc-895b751c92775f7610869a205d58a0a7c98632e0.zip |
Capitalize some more logging and exceptions
Diffstat (limited to 'common/network/UnixSocket.cxx')
-rw-r--r-- | common/network/UnixSocket.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/network/UnixSocket.cxx b/common/network/UnixSocket.cxx index fb017a53..48561245 100644 --- a/common/network/UnixSocket.cxx +++ b/common/network/UnixSocket.cxx @@ -53,12 +53,12 @@ UnixSocket::UnixSocket(const char *path) socklen_t salen; if (strlen(path) >= sizeof(addr.sun_path)) - throw socket_error("socket path is too long", ENAMETOOLONG); + throw socket_error("Socket path is too long", ENAMETOOLONG); // - Create a socket sock = socket(AF_UNIX, SOCK_STREAM, 0); if (sock == -1) - throw socket_error("unable to create socket", errno); + throw socket_error("Unable to create socket", errno); // - Attempt to connect memset(&addr, 0, sizeof(addr)); @@ -119,7 +119,7 @@ UnixListener::UnixListener(const char *path, int mode) int err, result; if (strlen(path) >= sizeof(addr.sun_path)) - throw socket_error("socket path is too long", ENAMETOOLONG); + throw socket_error("Socket path is too long", ENAMETOOLONG); // - Create a socket if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) |