Added missing catch statement

This commit is contained in:
Jesús Ángel González 2018-01-31 17:19:24 +01:00 committed by Javier Castro
parent c2d79f1b61
commit 0e7b493cd9

View File

@ -278,7 +278,8 @@ module.exports = (server, options) => {
return reply({ statusCode: 400, error: '9998', data: 'An error occurred trying to parse PCI DSS requirements' });
}
});
})
.catch(error => reply({ statusCode: 400, error: '9997', data: 'An error occurred trying to obtain PCI DSS requirements from Wazuh API' }));
});
} else {
if (typeof pciRequirements[req.params.requirement] !== 'undefined'){