Removes second log when responding with a regular error

This commit is contained in:
Florent Vilmart
2018-08-10 17:59:56 -04:00
parent b9673da07b
commit 8ba8a3393d
4 changed files with 47 additions and 31 deletions

View File

@@ -181,7 +181,7 @@ function makeExpressHandler(appId, promiseHandler) {
})
}
res.json(result.response);
}, (e) => {
}, (error) => next(error)).catch((e) => {
log.error(`Error generating response. ${inspect(e)}`, {error: e});
next(e);
});