mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-24 06:41:59 +08:00
1
This commit is contained in:
parent
44e6a5570e
commit
a657fd8d51
@ -23,6 +23,14 @@ func (e *ErrInfo) Code() int32 {
|
||||
return e.ErrCode
|
||||
}
|
||||
|
||||
func (e *ErrInfo) Msg(msg string) *ErrInfo {
|
||||
return &ErrInfo{
|
||||
ErrCode: e.ErrCode,
|
||||
ErrMsg: msg,
|
||||
DetailErrMsg: e.DetailErrMsg,
|
||||
}
|
||||
}
|
||||
|
||||
func (e *ErrInfo) Warp() error {
|
||||
return errors.WithStack(e)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user