mirror of
https://github.com/apache/dubbo.git
synced 2024-10-23 07:04:37 +08:00
Enhance logs (#12682)
This commit is contained in:
parent
54238c2c61
commit
9ae97ea053
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user