Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: split NoAccessError into ForbiddenError + PermissionError #4190

Merged
merged 4 commits into from
Jul 10, 2023

Conversation

thomasheartman
Copy link
Contributor

In some of the places we used NoAccessError for permissions, other
places we used it for a more generic 403 error with a different
message. This refactoring splits the error type into two distinct
types instead to make the error messages more consistent.

In some of the places we used `NoAccessError` for permissions, other
places we used it for a more generic 403 error with a different
message. This refactoring splits the error type into two distinct
types instead to make the error messages more consistent.
@vercel
Copy link

vercel bot commented Jul 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Jul 10, 2023 10:35am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Jul 10, 2023 10:35am

@rishiraj88
Copy link

.

Copy link
Contributor

@chriswk chriswk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it. LGTM

@thomasheartman thomasheartman enabled auto-merge (squash) July 10, 2023 10:44
@thomasheartman thomasheartman merged commit 5b95eed into main Jul 10, 2023
10 checks passed
@thomasheartman thomasheartman deleted the refactor/split-no-access-error branch July 10, 2023 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants