Skip to content

Fix silent empty result on ACL row-scan errors - #44

Merged
BenHall-1 merged 1 commit into
masterfrom
fix-access-control
Sep 13, 2026
Merged

BenHall-1 merged 1 commit into
masterfrom
fix-access-control

Conversation

@biast12

@biast12 biast12 commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Add `rows.Err()` checks after iterating in `GetAll` and `GetAllForGuild` so database iteration failures are returned instead of silently ignored. Also add a clarifying comment on `ErrNoRuleMatched` to document that it conflates "no rules" and "no matching rules," and that callers should use `GetAll` when they need to distinguish those cases.
@biast12
biast12 requested a review from a team as a code owner September 13, 2026 13:15
@BenHall-1
BenHall-1 merged commit c2ecc71 into master Sep 13, 2026
1 check passed
@BenHall-1
BenHall-1 deleted the fix-access-control branch September 13, 2026 16:59
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.

2 participants