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/rdr | |
parent | 9366d8e54c5ee1c2cfcf333a17b7fd4bdbd13993 (diff) | |
download | tigervnc-895b751c92775f7610869a205d58a0a7c98632e0.tar.gz tigervnc-895b751c92775f7610869a205d58a0a7c98632e0.zip |
Capitalize some more logging and exceptions
Diffstat (limited to 'common/rdr')
-rw-r--r-- | common/rdr/AESInStream.cxx | 2 | ||||
-rw-r--r-- | common/rdr/ZlibInStream.cxx | 4 | ||||
-rw-r--r-- | common/rdr/ZlibOutStream.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/common/rdr/AESInStream.cxx b/common/rdr/AESInStream.cxx index 3a56ef73..a4890899 100644 --- a/common/rdr/AESInStream.cxx +++ b/common/rdr/AESInStream.cxx @@ -68,7 +68,7 @@ bool AESInStream::fillBuffer() EAX_DIGEST(&eaxCtx256, aes256_encrypt, 16, macComputed); } if (memcmp(mac, macComputed, 16) != 0) - throw std::runtime_error("AESInStream: failed to authenticate message"); + throw std::runtime_error("AESInStream: Failed to authenticate message"); in->setptr(2 + length + 16); end += length; diff --git a/common/rdr/ZlibInStream.cxx b/common/rdr/ZlibInStream.cxx index c9f8aeca..57aa1e36 100644 --- a/common/rdr/ZlibInStream.cxx +++ b/common/rdr/ZlibInStream.cxx @@ -49,7 +49,7 @@ void ZlibInStream::flushUnderlying() { while (bytesIn > 0) { if (!hasData(1)) - throw std::runtime_error("ZlibInStream: failed to flush remaining stream data"); + throw std::runtime_error("ZlibInStream: Failed to flush remaining stream data"); skip(avail()); } @@ -91,7 +91,7 @@ void ZlibInStream::deinit() bool ZlibInStream::fillBuffer() { if (!underlying) - throw std::runtime_error("ZlibInStream overrun: no underlying stream"); + throw std::runtime_error("ZlibInStream overrun: No underlying stream"); zs->next_out = (uint8_t*)end; zs->avail_out = availSpace(); diff --git a/common/rdr/ZlibOutStream.cxx b/common/rdr/ZlibOutStream.cxx index 5079c723..73b5d459 100644 --- a/common/rdr/ZlibOutStream.cxx +++ b/common/rdr/ZlibOutStream.cxx @@ -112,7 +112,7 @@ void ZlibOutStream::deflate(int flush) int rc; if (!underlying) - throw std::runtime_error("ZlibOutStream: underlying OutStream has not been set"); + throw std::runtime_error("ZlibOutStream: Underlying OutStream has not been set"); if ((flush == Z_NO_FLUSH) && (zs->avail_in == 0)) return; |