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

(Improvement) Switch out PermissionsError for reraise with extended message #136

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

stevelacey
Copy link
Contributor

@stevelacey stevelacey commented Jan 22, 2023

Switches away from overriding the intended permission exception with the generic PermissionsError when WORF_DEBUG=True.

This means that 500's no longer happen in dev and instead the expected 4xx error is returned but with a longer message to aid debugging.

@stevelacey stevelacey force-pushed the improvement/reraise-permission-errors branch from d7c2b74 to b241bc0 Compare January 22, 2023 07:43
@stevelacey stevelacey force-pushed the improvement/reraise-permission-errors branch 2 times, most recently from 61dfd56 to 7d44f5f Compare January 23, 2023 04:05
@stevelacey stevelacey force-pushed the improvement/reraise-permission-errors branch from 7d44f5f to eb42db1 Compare January 23, 2023 04:09
@stevelacey stevelacey merged commit f3beae9 into master Jan 23, 2023
@stevelacey stevelacey deleted the improvement/reraise-permission-errors branch January 23, 2023 04:20
@github-actions github-actions bot mentioned this pull request Jan 23, 2023
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.

1 participant