log webhook errors
nclazz/gitea-bot/pipeline/head This commit looks good Details

master
Niclas Thobaben 2022-07-09 00:46:00 +02:00
parent f133114bcf
commit 48f1768124
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ app.post('/webhook', async (req, res) => {
})
await Promise.all(promises)
if(Object.keys(errors).length) {
console.error('Errors while executing webhook', errors)
res.status(400).json(errors)
return
}