mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 09:55:18 +00:00
Added missing catch statement
This commit is contained in:
parent
c2d79f1b61
commit
0e7b493cd9
@ -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'){
|
||||
|
Loading…
Reference in New Issue
Block a user