Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -60,7 +60,9 @@ console.log(res.statusCode); | ... | @@ -60,7 +60,9 @@ console.log(res.statusCode); |
60 | Promise | 60 | Promise |
61 | .all(req.body.events.map(handleEvent)) | 61 | .all(req.body.events.map(handleEvent)) |
62 | .then((result) => res.json(result)) | 62 | .then((result) => res.json(result)) |
63 | - .catch((err)=>{console.log(err);}) | 63 | + .catch((err)=>{console.log(err); |
64 | + console.log(err.response) | ||
65 | + }) | ||
64 | }); | 66 | }); |
65 | // event handler | 67 | // event handler |
66 | function handleEvent(event) { | 68 | function handleEvent(event) { | ... | ... |
-
Please register or login to post a comment