mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-05 09:36:00 +08:00
Merge branch 'errcode' of github.com:OpenIMSDK/Open-IM-Server into errcode
This commit is contained in:
@@ -72,6 +72,9 @@ func ToAPIErrWithErr(err error) ErrInfo {
|
||||
if errors.Is(errInfo, ErrArgs) {
|
||||
return ErrArgs
|
||||
}
|
||||
if errors.Is(errInfo, ErrDatabase) {
|
||||
return ErrDatabase
|
||||
}
|
||||
|
||||
}
|
||||
return ErrDefaultOther
|
||||
|
||||
Reference in New Issue
Block a user