Skip to content
Snippets Groups Projects
Commit 9e0fd613 authored by wangwx's avatar wangwx
Browse files

refact code

parent 37a11a13
No related branches found
No related tags found
No related merge requests found
......@@ -168,11 +168,7 @@ func (c *ProtocolCodec) Decode(p *DubboPackage) error {
if err != nil {
return perrors.WithStack(err)
}
rsp, ok := p.Body.(*ResponsePayload)
if !ok {
return perrors.Errorf("java exception:%s", exception.(string))
}
rsp.Exception = perrors.Errorf("java exception:%s", exception.(string))
p.Body.(*ResponsePayload).Exception = perrors.Errorf("java exception:%s", exception.(string))
return nil
} else if p.IsHeartBeat() {
// heartbeat no need to unmarshal contents
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment