func errors.Is

40 uses

	errors (current package)
		wrap.go#L39: func Is(err, target error) bool {

	github.com/jackc/pgconn
		errors.go#L24: 	if errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) {

	github.com/jackc/pgx/v4
		tx.go#L107: 		if !(rollbackErr == nil || errors.Is(rollbackErr, ErrTxClosed)) {
		tx.go#L201: 		if !(rollbackErr == nil || errors.Is(rollbackErr, ErrTxClosed)) {

	golang.org/x/pkgsite/internal/database
		logging.go#L107: 				if errors.Is(ctx.Err(), context.Canceled) ||

	golang.org/x/pkgsite/internal/derrors
		derrors.go#L182: 		if errors.Is(err, e.err) {

	golang.org/x/pkgsite/internal/fetch
		fetch.go#L312: 	if errors.Is(err, ErrModuleContainsNoPackages) || errors.Is(err, errMalformedZip) {
		latest.go#L79: 		if err != nil && !errors.Is(err, derrors.NotFound) {
		latest.go#L100: 	if errors.Is(err, derrors.NotFound) || errors.Is(err, derrors.NotFetched) {
		load.go#L118: 		case errors.Is(err, derrors.NotFound):
		load.go#L124: 		case errors.Is(err, godoc.ErrTooLarge):
		package.go#L207: 			if errors.Is(pkg.err, godoc.ErrTooLarge) {

	golang.org/x/pkgsite/internal/frontend
		404.go#L77: 		if !errors.Is(err, derrors.NotFound) {
		404.go#L94: 		if (err != nil && !errors.Is(err, derrors.NotFound)) ||
		fetch.go#L296: 		if errors.Is(fr.err, errPathDoesNotExistInModule) && moduleMatchingPathPrefix == "" {
		fetch.go#L401: 		if errors.Is(err, derrors.NotFound) {
		fetch.go#L468: 		if errors.Is(err, derrors.NotFound) {
		fetch.go#L496: 	if err != nil && !errors.Is(err, derrors.NotFound) {
		main.go#L151: 			if errors.Is(err, godoc.ErrInvalidEncodingType) {
		main.go#L162: 		if err != nil && !errors.Is(err, dochtml.ErrTooLarge) {
		main.go#L178: 		if err != nil && !errors.Is(err, derrors.NotFound) {
		search.go#L304: 		if !errors.Is(err, derrors.NotFound) {
		unit.go#L111: 		if !errors.Is(err, derrors.NotFound) {

	golang.org/x/pkgsite/internal/godoc
		render.go#L199: 	if errors.Is(err, ErrTooLarge) {

	golang.org/x/pkgsite/internal/middleware
		quota.go#L120: 		if errors.Is(err, context.DeadlineExceeded) || (errors.As(err, &nerr) && nerr.Timeout()) {

	golang.org/x/pkgsite/internal/postgres
		insert_module.go#L682: 		if err != nil && !errors.Is(err, derrors.NotFound) {
		test_helper.go#L141: 		if errors.Is(err, derrors.NotFound) && os.Getenv("GO_DISCOVERY_TESTDB") != "true" {
		test_helper.go#L170: 			if errors.Is(err, derrors.NotFound) && os.Getenv("GO_DISCOVERY_TESTDB") != "true" {

	golang.org/x/pkgsite/internal/proxy
		client.go#L105: 		if !errors.Is(err, derrors.NotFetched) && !errors.Is(err, derrors.ProxyTimedOut) {

	golang.org/x/pkgsite/internal/proxydatasource
		datasource.go#L121: 		if !errors.Is(ctx.Err(), context.Canceled) {
		datasource.go#L170: 		if errors.Is(err, derrors.NotFound) {
		datasource.go#L250: 		if errors.Is(err, derrors.NotFound) {

	golang.org/x/pkgsite/internal/worker
		fetch.go#L314: 		if !errors.Is(err, derrors.NotFound) {
		server.go#L387: 	if errors.Is(err, derrors.NotFound) {

	google.golang.org/protobuf/internal/errors
		is_go113.go#L12: func Is(err, target error) bool { return errors.Is(err, target) }

	net/http
		server.go#L587: 	atEOF := errors.Is(er, io.EOF)