ptupitsyn commented on code in PR #7854:
URL: https://github.com/apache/ignite-3/pull/7854#discussion_r3084841782


##########
modules/cli/src/main/java/org/apache/ignite/internal/cli/core/exception/handler/SqlExceptionHandler.java:
##########
@@ -63,14 +63,28 @@ private static ErrorUiComponent 
connectionErrUiComponent(IgniteException e) {
             return fromIgniteException("Client error", e);
         }
 
-        if (e.getCause() instanceof IgniteClientConnectionException) {
-            IgniteClientConnectionException cause = 
(IgniteClientConnectionException) e.getCause();
+        if (e instanceof IgniteClientConnectionException) {
+            IgniteClientConnectionException cause = 
(IgniteClientConnectionException) e;
 
             InvalidCredentialsException invalidCredentialsException = 
findCause(cause, InvalidCredentialsException.class);
             if (invalidCredentialsException != null) {
+                var msg = invalidCredentialsException.getMessage();
+
+                String details;
+                var headerIdx = msg.indexOf('\n');

Review Comment:
   On the protocol level null message is allowe (see 
`TcpClientChannel.readError`)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to