before module.js:311 throw err; ^ MyCustomError: This is a custom message