diff --git a/internal/infra/clog/clog.go b/internal/infra/clog/clog.go index d220a56d77..34fa9f3106 100644 --- a/internal/infra/clog/clog.go +++ b/internal/infra/clog/clog.go @@ -82,7 +82,7 @@ func hasErrorType(errorType error, args ...any) bool { errorTypeStr := errorType.Error() for _, arg := range args { // Check if the error is of the same type - if err, ok := arg.(error); ok && errors.Is(err, errorType) { + if err, ok := arg.(error); ok && (errors.Is(err, errorType) || strings.Contains(err.Error(), errorTypeStr)) { return true }