Skip to content

Error handling - How to catch all unhandled errors? #150

Answered by evilsprut
Dr-Phone asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Dr-Phone, thx! Module already has hardcoded catch:
https://github.com/bukhalo/nestjs-telegraf/blob/a309d8640d5a46e7a32d1298c9c1548adff7f1cf/lib/telegraf.provider.ts#L24
That's not good, i know)

The only thing I can offer at the moment is to import the sources of this module to your project and make it work the way you want it to. OpenSource power 🔥

I will think about how to solve this problem in the next release. I think Exception Filters built-in functionality of will work well for that.

And, feel free for make PR.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by evilsprut
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #150 on December 30, 2020 11:32.