mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-24 14:49:56 +08:00
1
This commit is contained in:
parent
44e6a5570e
commit
a657fd8d51
@ -23,6 +23,14 @@ func (e *ErrInfo) Code() int32 {
|
|||||||
return e.ErrCode
|
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 {
|
func (e *ErrInfo) Warp() error {
|
||||||
return errors.WithStack(e)
|
return errors.WithStack(e)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user