Skip to content

[codex] fix handlers ErrNoRows detection#59

Draft
prettyboyvic wants to merge 1 commit into
Grainlify:mainfrom
prettyboyvic:fix/pgx-errnorows-detection
Draft

[codex] fix handlers ErrNoRows detection#59
prettyboyvic wants to merge 1 commit into
Grainlify:mainfrom
prettyboyvic:fix/pgx-errnorows-detection

Conversation

@prettyboyvic

Copy link
Copy Markdown

Summary

  • replace ecosystem lookup string comparisons with errors.Is(err, pgx.ErrNoRows) through a shared mapping helper
  • cover unwrapped, wrapped, and generic lookup errors with focused tests
  • update one remaining public project lookup to use errors.Is for wrapped pgx.ErrNoRows

Validation

  • go test ./internal/handlers/...

Closes #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use errors.Is(err, pgx.ErrNoRows) instead of string comparison in ecosystems_public.go and admin_ecosystems.go

1 participant