mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
fix(webhooks): handling errors inside source verification (#1994)
This commit is contained in:
@ -803,6 +803,13 @@ pub async fn webhooks_core<W: types::OutgoingWebhookType>(
|
|||||||
object_ref_id.clone(),
|
object_ref_id.clone(),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
|
.or_else(|error| match error.current_context() {
|
||||||
|
errors::ConnectorError::WebhookSourceVerificationFailed => {
|
||||||
|
logger::error!(?error, "Source Verification Failed");
|
||||||
|
Ok(false)
|
||||||
|
}
|
||||||
|
_ => Err(error),
|
||||||
|
})
|
||||||
.switch()
|
.switch()
|
||||||
.attach_printable("There was an issue in incoming webhook source verification")?;
|
.attach_printable("There was an issue in incoming webhook source verification")?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user