You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2022/09/06 07:18:39 UTC

[GitHub] [ignite-3] korlov42 commented on a diff in pull request #1024: IGNITE-17090 Show user-friendly message in sql command

korlov42 commented on code in PR #1024:
URL: https://github.com/apache/ignite-3/pull/1024#discussion_r963089629


##########
modules/client-handler/src/main/java/org/apache/ignite/client/handler/JdbcQueryEventHandlerImpl.java:
##########
@@ -272,10 +273,17 @@ public CompletableFuture<JdbcMetaPrimaryKeysResult> primaryKeysMetaAsync(JdbcMet
      * @return StringWriter filled with exception.
      */
     private StringWriter getWriterWithStackTrace(Throwable t) {
+        String message = null;
+        if (t instanceof CompletionException) {

Review Comment:
   It would be better to use `org.apache.ignite.internal.util.ExceptionUtils#unwrapCause`



-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org