A simple Node.js utility for handling errors