mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
fix: v2.9.5 (#4503)
This commit is contained in:
@ -117,6 +117,7 @@ func As(err error, target any) bool {
|
||||
|
||||
// HasError performs as Is.
|
||||
// This function is designed and implemented early before errors.Is of go stdlib.
|
||||
//
|
||||
// Deprecated: use Is instead.
|
||||
func HasError(err, target error) bool {
|
||||
return errors.Is(err, target)
|
||||
|
||||
Reference in New Issue
Block a user