Skip to content

Commit 8eda4c9

Browse files
committed
Gardening: Refine error message for "authenticator requires TLS"
Change-Id: Ie9ff47d8cfeabb33eef2c13ac3fd819ad2c2a7ac Reviewed-on: https://review.couchbase.org/c/couchbase-jvm-clients/+/232656 Reviewed-by: David Nault <[email protected]> Tested-by: Build Bot <[email protected]>
1 parent fd9832a commit 8eda4c9

File tree

1 file changed

+1
-1
lines changed
  • core-io/src/main/java/com/couchbase/client/core

1 file changed

+1
-1
lines changed

core-io/src/main/java/com/couchbase/client/core/Core.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ protected Core(
285285
if (environment.securityConfig().tlsEnabled() && !authenticator.supportsTls()) {
286286
throw new InvalidArgumentException("TLS enabled but the Authenticator does not support TLS!", null, null);
287287
} else if (!environment.securityConfig().tlsEnabled() && !authenticator.supportsNonTls()) {
288-
throw new InvalidArgumentException("TLS not enabled but the Authenticator does only support TLS!", null, null);
288+
throw new InvalidArgumentException("TLS not enabled but the Authenticator requires TLS!", null, null);
289289
}
290290

291291
checkConnectionStringScheme(connectionString, ConnectionString.Scheme.COUCHBASE, ConnectionString.Scheme.COUCHBASES);

0 commit comments

Comments
 (0)