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

return a response from middleware instead of exception #345

Merged

Conversation

jamshale
Copy link
Contributor

After looking at this a bit more I don't think it should raise an exception again in the middleware. It returns a bit more of an informative json response instead now. I tried a html response but I think this is better.

Missed an unused import as well.

Signed-off-by: jamshale <jamiehalebc@gmail.com>
@jamshale jamshale marked this pull request as ready for review September 20, 2023 16:01
@jamshale jamshale requested a review from esune September 20, 2023 16:09
@esune esune merged commit 8773381 into 2.0-development Sep 20, 2023
3 checks passed
@esune esune deleted the feature/332-fix-logging-middleware-exception-handling branch September 20, 2023 17:13
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