This commit is contained in:
crusader 2017-11-02 20:06:19 +09:00
parent 2af62df399
commit c6729cf963

View File

@ -98,9 +98,13 @@ func (rr *rpcRegistry) Invoke(codec protocol.RegistryCodec) (result interface{},
if nil != methodSpec.returnType {
result = returnValues[0].Interface()
err = returnValues[1].Interface().(error)
if nil != returnValues[1].Interface() {
err = returnValues[1].Interface().(error)
}
} else {
err = returnValues[0].Interface().(error)
if nil != returnValues[0].Interface() {
err = returnValues[0].Interface().(error)
}
}
return