Node.js module which provides a simple error handling utility function