Files
waf-platform/EdgeUser/internal/errors/utils.go
2026-02-04 20:27:13 +08:00

15 lines
264 B
Go

package errors
import "strings"
// IsResourceNotFound 判断是否为资源无法查看错误
func IsResourceNotFound(err error) bool {
if err == nil {
return false
}
if strings.Contains(err.Error(), "resource not found") {
return true
}
return false
}