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