mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-17 01:30:03 +08:00
Error code standardization
This commit is contained in:
parent
89f0741cea
commit
e03a34cae4
@ -889,7 +889,6 @@ func (s *groupServer) GroupApplicationResponse(ctx context.Context, req *pbGroup
|
|||||||
trace_log.SetRpcReqInfo(nCtx, utils.GetSelfFuncName(), req.String())
|
trace_log.SetRpcReqInfo(nCtx, utils.GetSelfFuncName(), req.String())
|
||||||
defer trace_log.ShowLog(nCtx)
|
defer trace_log.ShowLog(nCtx)
|
||||||
resp := pbGroup.GroupApplicationResponseResp{CommonResp: &pbGroup.CommonResp{}}
|
resp := pbGroup.GroupApplicationResponseResp{CommonResp: &pbGroup.CommonResp{}}
|
||||||
defer trace_log.ShowLog(nCtx)
|
|
||||||
if err := CheckPermission(nCtx, req.GroupID, req.OpUserID); err != nil {
|
if err := CheckPermission(nCtx, req.GroupID, req.OpUserID); err != nil {
|
||||||
SetErrorForResp(err, &resp.CommonResp.ErrCode, &resp.CommonResp.ErrMsg)
|
SetErrorForResp(err, &resp.CommonResp.ErrCode, &resp.CommonResp.ErrMsg)
|
||||||
return &resp, nil
|
return &resp, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user