mirror of
https://github.com/tsickert/discord-webhook.git
synced 2025-02-03 21:16:41 -05:00
Throw the exception
This commit is contained in:
parent
c5be16bcd9
commit
6ba8aab7b3
1 changed files with 2 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue