Error handling refactor and 500 page/message templates
This commit is contained in:
@@ -81,7 +81,7 @@ pub struct EmailClientSettings {
|
||||
}
|
||||
|
||||
impl EmailClientSettings {
|
||||
pub fn sender(&self) -> Result<SubscriberEmail, String> {
|
||||
pub fn sender(&self) -> Result<SubscriberEmail, anyhow::Error> {
|
||||
SubscriberEmail::parse(self.sender_email.clone())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user