Throw the exception

This commit is contained in:
tsickert 2024-03-30 15:34:57 +00:00
parent c5be16bcd9
commit 6ba8aab7b3

View file

@ -175,12 +175,8 @@ export async function executeWebhook(): Promise<void> {
}
)
} else {
try {
const response = await client.postJson(webhookUrl, payload)
await handleResponse(response)
} catch (e) {
core.error(`Error occurred while executing webhook: ${e}`)
}
const response = await client.postJson(webhookUrl, payload)
await handleResponse(response)
}
}