Open marktani opened 6 years ago
Comment by schickling
Friday Sep 08, 2017 at 09:25 GMT
Comment by schickling
Friday Jun 16, 2017 at 16:13 GMT
➤ Nilan Marktanner commented:
Try to reproduce.
Comment by schickling
Friday Sep 08, 2017 at 09:25 GMT
Comment by marktani
Saturday Jun 17, 2017 at 12:56 GMT
Executing this function in test run:
module.exports = function (event) {
return new Promise(function(resolve, reject) {
resolve({error: 'wrong coupon code'})
})
}
Response:
{
"timestamp": "2017-06-17T12:55:04.648Z",
"isError": false,
"duration": 210,
"inline": {
"event": "{\n \"data\": {\n \"Post\": {\n \"updatedFields\": [\n \"updatedAt\"\n ],\n \"node\": {\n \"id\": \"cj41ab8mg00033k5wnlk2hg47\"\n }\n }\n }\n}",
"logs": [
]
}
}
resolve({error: 'wrong coupon code'})
is never shown in the error logs in test run. triggering the function with a mutation logs the error correctly.