mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2025-03-09 12:51:58 +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)
|
.header("X-Postmark-Server-Token", &self.authorization_token)
|
||||||
.json(&request_body)
|
.json(&request_body)
|
||||||
.send()
|
.send()
|
||||||
.await?;
|
.await?
|
||||||
|
.error_for_status()?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue