log webhook errors
nclazz/gitea-bot/pipeline/head This commit looks good
Details
nclazz/gitea-bot/pipeline/head This commit looks good
Details
parent
f133114bcf
commit
48f1768124
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue