commit dfbf735485504bddc94763ce87bef8077d49e06e
parent fadc5dec6a0650584266b28cd48d7a3beb5f7430
Author: iostpa <iostpa@iostpa.com>
Date: Wed, 18 Feb 2026 17:32:25 +0200
Change how I carch errors
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/index.js b/index.js
@@ -95,12 +95,11 @@ app.webhooks.on('pull_request.closed', async ({ octokit, payload }) => {
// Handle errors
app.webhooks.onError((error) => {
+ Sentry.captureException(error)
if (error.name === 'AggregateError') {
// Log Secret verification errors
- Sentry.captureException(error)
console.log(`Error processing request: ${error.event}`)
} else {
- Sentry.captureException(error)
console.log(error)
}
})