aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/Hostname.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-11-22 14:27:02 +0100
committerPierre Ossman <ossman@cendio.se>2024-11-22 14:27:02 +0100
commit895b751c92775f7610869a205d58a0a7c98632e0 (patch)
treea2182b8a5ddee92e0d649968e50842572072addf /common/rfb/Hostname.h
parent9366d8e54c5ee1c2cfcf333a17b7fd4bdbd13993 (diff)
downloadtigervnc-895b751c92775f7610869a205d58a0a7c98632e0.tar.gz
tigervnc-895b751c92775f7610869a205d58a0a7c98632e0.zip
Capitalize some more logging and exceptions
Diffstat (limited to 'common/rfb/Hostname.h')
-rw-r--r--common/rfb/Hostname.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/rfb/Hostname.h b/common/rfb/Hostname.h
index de4a330e..f43e5067 100644
--- a/common/rfb/Hostname.h
+++ b/common/rfb/Hostname.h
@@ -62,7 +62,7 @@ namespace rfb {
hostStart = &hi[1];
hostEnd = strchr(hostStart, ']');
if (hostEnd == nullptr)
- throw std::invalid_argument("unmatched [ in host");
+ throw std::invalid_argument("Unmatched [ in host");
portStart = hostEnd + 1;
if (isAllSpace(portStart))
@@ -101,14 +101,14 @@ namespace rfb {
char* end;
if (portStart[0] != ':')
- throw std::invalid_argument("invalid port specified");
+ throw std::invalid_argument("Invalid port specified");
if (portStart[1] != ':')
*port = strtol(portStart + 1, &end, 10);
else
*port = strtol(portStart + 2, &end, 10);
if (*end != '\0' && ! isAllSpace(end))
- throw std::invalid_argument("invalid port specified");
+ throw std::invalid_argument("Invalid port specified");
if ((portStart[1] != ':') && (*port < 100))
*port += basePort;