Added the error information to the toString() if

there is error information to show.
This commit is contained in:
Paul Speed 2015-12-05 04:05:49 -05:00
parent 8958459ef9
commit 15afcfb735

View File

@ -84,6 +84,7 @@ public class RpcResponseMessage extends AbstractMessage {
@Override @Override
public String toString() { public String toString() {
return getClass().getSimpleName() + "[#" + msgId + ", result=" + result return getClass().getSimpleName() + "[#" + msgId + ", result=" + result
+ (error != null ? ", error=" + error : "")
+ "]"; + "]";
} }
} }