Consensys / armlet

a MythX API client wrapper
MIT License
16 stars 7 forks source link

Handle cases where data is undefined in requester #99

Closed willclarktech closed 5 years ago

willclarktech commented 5 years ago

To prevent the following error, which I encountered via truffle-security:

.../node_modules/armlet/lib/requester.js:73
        const msgs = data.details.reduce((acc, detail) => {
                          ^
TypeError: Cannot read property 'details' of undefined
willclarktech commented 5 years ago

Whoops, tried to use GitHub's editor and couldn't see the spaces. PR updated!