mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-09 11:35:59 +08:00
1
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user