mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-11-15 21:21:00 +00:00
Error for status.
This commit is contained in:
parent
391f29de3d
commit
a8f3a5ff47
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ impl EmailClient {
|
|||
.header("X-Postmark-Server-Token", &self.authorization_token)
|
||||
.json(&request_body)
|
||||
.send()
|
||||
.await?;
|
||||
.await?
|
||||
.error_for_status()?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue