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
[Bug]: 每一个err不是应该只被处理一次吗? #1506
Labels
bug
Something isn't working
Comments
一个是log 一个是response? |
一个只是为了打 log 日志 ,一个是返回到发自我的 iPhone在 2023年8月9日,16:04,奇淼(piexlmax ***@***.***> 写道:
@SliverHorn CC
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were assigned.Message ID: ***@***.***>
|
这个我给过解决方案你啊,但是不认同啊 |
这样没问题啊,日志记录的和response给前端的并不会完全一样。 |
没啥问题,一个是抛给前端的,一个是记录到日志里做留存的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gin-vue-admin 版本
2.4.5
Node 版本
v1.16
Golang 版本
go1.20
是否依旧存在
可以
bug描述
if err != nil { global.GVA_LOG.Error("接收文件失败!", zap.Error(err)) response.FailWithMessage("接收文件失败", c) return }
类似于这种对错误进行了两次的处理,是否显得冗余
修改建议
在这里是否可以通过直接return err的方式,将错误抛给调用者
The text was updated successfully, but these errors were encountered: