···4545 content: String::new(),
4646 embeds,
4747 };
4848- let res = http.post(discord_webhook_url).json(&body).send().await?;
4848+ let res = http.post(discord_webhook_url).json(&body).send().await;
4949+ if let Err(e) = &res {
5050+ tracing::error!(error = %e, "Failed to post to Discord webhook");
5151+ return Ok(());
5252+ }
5353+5454+ let res = res.unwrap();
5555+4956 if !res.status().is_success() {
5057 let text = res.text().await.unwrap_or_default();
5158 tracing::error!(error = %text, "Failed to post to Discord webhook");