Commit f18b6c0
committed
Handle cases where data is undefined in requester
To prevent the following error:
```
.../node_modules/armlet/lib/requester.js:73
const msgs = data.details.reduce((acc, detail) => {
^
TypeError: Cannot read property 'details' of undefined
```1 parent 49d65bf commit f18b6c0
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
0 commit comments