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

ErrorService to handle HttpErrors / introduce custom error handling #591

Closed
3 tasks done
routmoute opened this issue Dec 30, 2021 · 0 comments · Fixed by #592
Closed
3 tasks done

ErrorService to handle HttpErrors / introduce custom error handling #591

routmoute opened this issue Dec 30, 2021 · 0 comments · Fixed by #592

Comments

@routmoute
Copy link
Contributor

routmoute commented Dec 30, 2021

Summary

What:

Possiblity to modify Errors messages:
For exemple, change

Error: Method Not Allowed
    at Server.<anonymous> (https://deno.land/x/drash@v2.3.0/src/http/server.ts:238:17)
    at async Server.#respond (https://deno.land/std@0.119.0/http/server.ts:298:18)

by

{
    "error": "Method Not Allowed"
}

or what we want

Why:

Do not see details in production

Acceptance Criteria

Below is a list of tasks that must be completed before this issue can be closed.

  • Write documentation
  • Write integration tests
  • Write feature
@crookse crookse changed the title Possibility to customize HttpErrors ErrorService to handle HttpErrors / introduce custom error handling Dec 31, 2021
@crookse crookse linked a pull request Jan 2, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant