You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by ma...@apache.org on 2022/03/28 02:34:13 UTC
[zookeeper] branch master updated: ZOOKEEPER-4494: Fix error message format
This is an automated email from the ASF dual-hosted git repository.
maoling pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zookeeper.git
The following commit(s) were added to refs/heads/master by this push:
new a160981 ZOOKEEPER-4494: Fix error message format
a160981 is described below
commit a160981e37d2907717284ec9f6eab5e17e8aecfa
Author: tison <wa...@gmail.com>
AuthorDate: Mon Mar 28 10:34:06 2022 +0800
ZOOKEEPER-4494: Fix error message format
cc maoling eolivelli
Author: tison <wa...@gmail.com>
Reviewers: maoling <ma...@apache.org>
Closes #1838 from tisonkun/patch-2
---
.../src/main/java/org/apache/zookeeper/server/util/SerializeUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/server/util/SerializeUtils.java b/zookeeper-server/src/main/java/org/apache/zookeeper/server/util/SerializeUtils.java
index fcc5c8f..464621e 100644
--- a/zookeeper-server/src/main/java/org/apache/zookeeper/server/util/SerializeUtils.java
+++ b/zookeeper-server/src/main/java/org/apache/zookeeper/server/util/SerializeUtils.java
@@ -101,7 +101,7 @@ public class SerializeUtils {
txn = new MultiTxn();
break;
default:
- throw new IOException("Unsupported Txn with type=%d" + hdr.getType());
+ throw new IOException("Unsupported Txn with type=" + hdr.getType());
}
if (txn != null) {
try {