i need to get the error from any query that fire an error is there a way to get the error event in one place?
i am using mongodb v3.6 and mongodb driver v2.2
i have tried using
db.on('error',console.error)
but that didn't fired , my guess is that it only happens to the db error itself and not the quires