Opinionated look at error handling in NodeJS Feb 2, 2016 I came across pieces of code in the app codebase I work on quite a few times which seem wonky, to say the least. In an event that there's an error, a callback should return the error object and only the error object. view source Advertisement