Merge branch 'errcode' of github.com:OpenIMSDK/Open-IM-Server into errcode

This commit is contained in:
wangchuxiao
2023-06-02 16:00:43 +08:00
5 changed files with 46 additions and 25 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ func (e *codeError) Is(err error, loose ...bool) bool {
}
func (e *codeError) Error() string {
return fmt.Sprintf("[%d]%s", e.code, e.msg)
return fmt.Sprintf("%s", e.msg)
}
func Unwrap(err error) error {