You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by db...@apache.org on 2013/06/23 21:57:34 UTC

git commit: slightly more helpful exception messages

Updated Branches:
  refs/heads/trunk a78cd5459 -> af927d8c1


slightly more helpful exception messages


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

Branch: refs/heads/trunk
Commit: af927d8c1c9336562ca2f9d010cd197c72fe5dfd
Parents: a78cd54
Author: Dave Brosius <db...@apache.org>
Authored: Sun Jun 23 15:56:04 2013 -0400
Committer: Dave Brosius <db...@apache.org>
Committed: Sun Jun 23 15:56:04 2013 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/cql3/PropertyDefinitions.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/af927d8c/src/java/org/apache/cassandra/cql3/PropertyDefinitions.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cql3/PropertyDefinitions.java b/src/java/org/apache/cassandra/cql3/PropertyDefinitions.java
index ba83e45..b48d27a 100644
--- a/src/java/org/apache/cassandra/cql3/PropertyDefinitions.java
+++ b/src/java/org/apache/cassandra/cql3/PropertyDefinitions.java
@@ -62,7 +62,7 @@ public class PropertyDefinitions
         if (val == null)
             return null;
         if (!(val instanceof String))
-            throw new SyntaxException(String.format("Invalid value for property '%s'", name));
+            throw new SyntaxException(String.format("Invalid value for property '%s'. It should be a string", name));
         return (String)val;
     }
 
@@ -72,7 +72,7 @@ public class PropertyDefinitions
         if (val == null)
             return null;
         if (!(val instanceof Map))
-            throw new SyntaxException(String.format("Invalid value for property '%s'", name));
+            throw new SyntaxException(String.format("Invalid value for property '%s'. It should be a map.", name));
         return (Map<String, String>)val;
     }