We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe. If an error occurs on subapp parent app orError is not called
orError
Describe the solution you'd like Handle subapps errors on parent app
Describe alternatives you've considered As workaround i am exporting parent options:
... export const options = { onError: (err: any, _: Request, res: Response) => { res.status(err.status ?? 500).json({ message: err?.message ?? 'Ocorreu um erro' }); } }; ...
And importing it to use in subapps:
import { app, options } from '../services/app'; const Controller = new App(options); ...
Is there a better way to do this or some way of parent app handle subapps errors?
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
If an error occurs on subapp parent app
orError
is not calledDescribe the solution you'd like
Handle subapps errors on parent app
Describe alternatives you've considered
As workaround i am exporting parent options:
And importing it to use in subapps:
Is there a better way to do this or some way of parent app handle subapps errors?
The text was updated successfully, but these errors were encountered: