Error in event handler code example
Example: error handler
function handlerError(request, response){
response.status(500).send('opps');
}
.catch(handlerError);
function handlerError(request, response){
response.status(500).send('opps');
}
.catch(handlerError);