cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject git commit: Don't include original exception class name in CQL message
Date Thu, 01 Mar 2012 08:16:55 GMT
Updated Branches:
  refs/heads/cassandra-1.1.0 470873fcb -> 6ed098d31


Don't include original exception class name in CQL message

patch by slebresne; reviewed by jbellis for CASSANDRA-3981


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/6ed098d3
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/6ed098d3
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/6ed098d3

Branch: refs/heads/cassandra-1.1.0
Commit: 6ed098d31cf1691d2d501bd9a4bf81a05e5c711e
Parents: 470873f
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Thu Mar 1 09:14:53 2012 +0100
Committer: Sylvain Lebresne <sylvain@datastax.com>
Committed: Thu Mar 1 09:14:53 2012 +0100

----------------------------------------------------------------------
 .../statements/CreateColumnFamilyStatement.java    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/6ed098d3/src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
b/src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
index 5f2891b..1b86641 100644
--- a/src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
+++ b/src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
@@ -122,7 +122,7 @@ public class CreateColumnFamilyStatement extends SchemaAlteringStatement
         }
         catch (ConfigurationException e)
         {
-            throw new InvalidRequestException(e.toString());
+            throw new InvalidRequestException(e.getMessage());
         }
         return newCFMD;
     }


Mime
View raw message