mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 11:06:43 +08:00
tidy code
This commit is contained in:
parent
8e4f3b4f06
commit
166ec71a28
@ -37,7 +37,7 @@ func UserRegister(c *gin.Context) {
|
|||||||
reply, err := client.UserRegister(context.Background(), req)
|
reply, err := client.UserRegister(context.Background(), req)
|
||||||
|
|
||||||
if err != nil || reply.CommonResp.ErrCode != 0 {
|
if err != nil || reply.CommonResp.ErrCode != 0 {
|
||||||
log.NewError("0", "UserRegister failed ", err.Error(), req.String())
|
log.NewError("0", "UserRegister failed ", err, reply.CommonResp.ErrCode)
|
||||||
c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": err.Error()})
|
c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": err.Error()})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user