Skip to content

Global error handler #1836

Answered by sidorares
DarkGL asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think its currently possible, if you have conn.query(sql, params, callback) the error only flows into callback and is not bubbling up

I'm open for discussions of more advanced events and hooks system ( events - allow to log all queries / parameters etc, hooks - allow to run code before / after connection open and close, query, pool get or release with ability to modify or cancel next step if required )

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DarkGL
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