asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Till Westmann (Code Review)" <do-not-re...@asterixdb.incubator.apache.org>
Subject Change in asterixdb[master]: Do not include Exception class in error message
Date Wed, 17 May 2017 03:11:09 GMT
Till Westmann has uploaded a new change for review.

  https://asterix-gerrit.ics.uci.edu/1757

Change subject: Do not include Exception class in error message
......................................................................

Do not include Exception class in error message

Change-Id: I33c76222dabfe6ede67dbcd7f0992cbb047265ef
---
M asterixdb/asterix-app/src/main/java/org/apache/asterix/app/message/ExecuteStatementRequestMessage.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/57/1757/1

diff --git a/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/message/ExecuteStatementRequestMessage.java
b/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/message/ExecuteStatementRequestMessage.java
index defa180..a2126d6 100644
--- a/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/message/ExecuteStatementRequestMessage.java
+++ b/asterixdb/asterix-app/src/main/java/org/apache/asterix/app/message/ExecuteStatementRequestMessage.java
@@ -136,7 +136,7 @@
                 GlobalConfig.ASTERIX_LOGGER.log(Level.SEVERE, pe.getMessage(), pe);
                 responseMsg.setError(new AsterixException(pe.getMessage()));
             } catch (Exception e) {
-                String estr = e.toString();
+                String estr = e.getMessage();
                 GlobalConfig.ASTERIX_LOGGER.log(Level.SEVERE, estr, e);
                 responseMsg.setError(new Exception(estr));
             }

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1757
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I33c76222dabfe6ede67dbcd7f0992cbb047265ef
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Till Westmann <tillw@apache.org>

Mime
View raw message