mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-05 09:36:00 +08:00
Error code standardization
This commit is contained in:
@@ -71,6 +71,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