Updated Branches:
  refs/heads/trunk c74a871e7 -> c7c396d2b

Fix error message formatting


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

Branch: refs/heads/trunk
Commit: c7c396d2bcd92cf38efc3ad90508646d594d8911
Parents: c74a871
Author: Sylvain Lebresne <sylv...@datastax.com>
Authored: Thu Sep 27 11:08:22 2012 +0200
Committer: Sylvain Lebresne <sylv...@datastax.com>
Committed: Thu Sep 27 11:08:22 2012 +0200

----------------------------------------------------------------------
 .../exceptions/PreparedQueryNotFoundException.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/c7c396d2/src/java/org/apache/cassandra/exceptions/PreparedQueryNotFoundException.java
----------------------------------------------------------------------
diff --git 
a/src/java/org/apache/cassandra/exceptions/PreparedQueryNotFoundException.java 
b/src/java/org/apache/cassandra/exceptions/PreparedQueryNotFoundException.java
index 07502c8..7a165f4 100644
--- 
a/src/java/org/apache/cassandra/exceptions/PreparedQueryNotFoundException.java
+++ 
b/src/java/org/apache/cassandra/exceptions/PreparedQueryNotFoundException.java
@@ -32,9 +32,9 @@ public class PreparedQueryNotFoundException extends 
RequestValidationException
 
     private static String makeMsg(MD5Digest id)
     {
-        return String.format("Prepared query with ID %d not found" +
+        return String.format("Prepared query with ID %s not found" +
                              " (either the query was not prepared on this host 
(maybe the host has been restarted?)" +
-                             " or you have prepared more than %d queries and 
queries %d has been evicted from the internal cache)",
+                             " or you have prepared more than %d queries and 
query %s has been evicted from the internal cache)",
                              id, QueryProcessor.MAX_CACHE_PREPARED, id);
     }
 }

Reply via email to