Removed stray console.log
Updated boilerplate error handler.