mirror of
https://codeberg.org/icewind/rss-webhook-trigger.git
synced 2026-06-03 09:54:18 +02:00
status code error
This commit is contained in:
parent
a5fd6ac39b
commit
6e13780297
1 changed files with 3 additions and 1 deletions
|
|
@ -42,7 +42,9 @@ async fn main() -> Result<()> {
|
|||
if !feed.body.is_null() {
|
||||
req = req.json(&feed.body);
|
||||
}
|
||||
req.send().await?;
|
||||
if let Err(e) = req.send().await?.error_for_status() {
|
||||
eprintln!("{:#}", e);
|
||||
}
|
||||
}
|
||||
Err(e) => eprintln!("{:#}", e),
|
||||
Ok(false) => {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue