How do you handle errors in Node.js server code?
Currently, I'm working with a large codebase. The codebase is split into different services and each service has its own controller. Now the controller is interacting with the outside world. From this what I have gathered is the error should be handled only in the controller functions.
I am not sure if this is the best approach or not but seems usable.