diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-08-07 10:08:43 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-08-07 11:02:18 +0200 |
commit | c9b46b771f5ebbc63c4aef4743c157c4f7407ac9 (patch) | |
tree | 924df319be2759784a12ccf2fec251623b782f4e /common/rfb/SConnection.cxx | |
parent | b4363357f5dbba6ced0faa32e47c19047698e8bd (diff) | |
download | tigervnc-c9b46b771f5ebbc63c4aef4743c157c4f7407ac9.tar.gz tigervnc-c9b46b771f5ebbc63c4aef4743c157c4f7407ac9.zip |
Remove auth exception prefix
This prefix often just added noise, and could sometimes be added
multiple times. It's better that user interface catch the specific
exception type and give a more descriptive presentation to the user.
This is partially a revert of 1922550.
Diffstat (limited to 'common/rfb/SConnection.cxx')
-rw-r--r-- | common/rfb/SConnection.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/SConnection.cxx b/common/rfb/SConnection.cxx index 866d19a2..08cef044 100644 --- a/common/rfb/SConnection.cxx +++ b/common/rfb/SConnection.cxx @@ -458,7 +458,7 @@ void SConnection::approveConnection(bool accept, const char* reason) os->writeU32(secResultFailed); if (!client.beforeVersion(3,8)) { // 3.8 onwards have failure message if (!reason) - reason = "Authentication failure"; + reason = "Connection rejected"; os->writeU32(strlen(reason)); os->writeBytes((const uint8_t*)reason, strlen(reason)); } @@ -476,7 +476,7 @@ void SConnection::approveConnection(bool accept, const char* reason) if (reason) throw AuthFailureException(reason); else - throw AuthFailureException(); + throw AuthFailureException("Connection rejected"); } } |