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

Handle middleware errors #46

Closed
shivarm opened this issue Nov 4, 2023 · 2 comments
Closed

Handle middleware errors #46

shivarm opened this issue Nov 4, 2023 · 2 comments
Labels
feature Adding new feature on top of the existing code

Comments

@shivarm
Copy link

shivarm commented Nov 4, 2023

Description

The error handling middleware allows us to separate our error logic and send responses accordingly. The next() method we discussed in middleware takes us to next middleware/route handler. For error handling, we have the next(err) function.

Use Case

During development if we will test our API's and if there happen something wrong then it will help you to identify the problem with stack trace.

Proposed Solution

No response

Additional Information

No response

Attachments

No response

@shivarm shivarm added the feature Adding new feature on top of the existing code label Nov 4, 2023
@shivarm
Copy link
Author

shivarm commented Nov 4, 2023

@krishnaacharyaa

@krishnaacharyaa
Copy link
Owner

Hi @shivam-sharma7, this directly is related to #1 and implements the solution which is already proposed in this, kindly pick other issue as previously clearly specified couple of times.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding new feature on top of the existing code
Projects
None yet
Development

No branches or pull requests

2 participants