This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch 3.1
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.1 by this push:
     new 9ae97ea053 Enhance logs (#12682)
9ae97ea053 is described below

commit 9ae97ea053dad758a0346a9acda4fbc8ea01429a
Author: Albumen Kevin <[email protected]>
AuthorDate: Thu Jul 6 15:18:10 2023 +0800

    Enhance logs (#12682)
---
 .../src/main/java/org/apache/dubbo/common/serialize/ObjectInput.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/dubbo-serialization/dubbo-serialization-api/src/main/java/org/apache/dubbo/common/serialize/ObjectInput.java
 
b/dubbo-serialization/dubbo-serialization-api/src/main/java/org/apache/dubbo/common/serialize/ObjectInput.java
index b63438f714..853334f925 100644
--- 
a/dubbo-serialization/dubbo-serialization-api/src/main/java/org/apache/dubbo/common/serialize/ObjectInput.java
+++ 
b/dubbo-serialization/dubbo-serialization-api/src/main/java/org/apache/dubbo/common/serialize/ObjectInput.java
@@ -73,7 +73,7 @@ public interface ObjectInput extends DataInput {
     default Throwable readThrowable() throws IOException, 
ClassNotFoundException {
         Object obj = readObject();
         if (!(obj instanceof Throwable)) {
-            throw new IOException("Response data error, expect Throwable, but 
get " + obj);
+            throw new IOException("Response data error, expect Throwable, but 
get " + obj.getClass());
         }
         return (Throwable) obj;
     }

Reply via email to