mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
修复RPC附加原始参数解析错误出错时直接错误返回
This commit is contained in:
@@ -92,7 +92,7 @@ func (slf *PBProcessor ) Marshal(msg interface{}) ([]byte, error){
|
||||
|
||||
var err error
|
||||
if pMsg.msg!=nil {
|
||||
pMsg.rawMsg,err = proto.Marshal(pMsg.msg.(proto.Message))
|
||||
pMsg.rawMsg,err = proto.Marshal(pMsg.msg)
|
||||
if err != nil {
|
||||
return nil,err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user