New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
函数返回值和错误信息只能二选一? #238
Comments
刚刚测试了,没有任何问题。和框架没关系,可能是你的go代码写的有问题。。断点调试下 |
我的环境是:TarsFramework >= v2.4.4, TarsGo >= v1.1.4 实现代码: 参数为: 确实是 存在 error时,另外一个参数不返回 |
该issue长期未更新。如果问题依旧没解决,欢迎重新打开issue。TARS社区有您更精彩。 Thanks for your supporting. The issue has not been updated for a long time. If the problem is still not resolved, welcome to reopen the issue. |
`
func (imp *HelloImp) Test() (int32, error) {
//这样客户端可以获得 返回值 -1 和 nil
return -1, nil
}
func (imp *HelloImp) Test() (int32, error) {
//这样客户端只能获得 返回值 0 和 “test error”
return -1, errors.New("test error")
}
`
当服务端函数返回值 error存在时,第一个返回值信息就不会返回!
这个问题怎么解?
The text was updated successfully, but these errors were encountered: