email config: dont show error on deserialization failure
This commit is contained in:
parent
acbb1b2433
commit
477656a42e
1 changed files with 2 additions and 2 deletions
|
|
@ -11,8 +11,8 @@ pub fn init(config: &Figment) -> Result<Option<Config>, String> {
|
|||
}
|
||||
Err(e) => Err(format!("Invalid email configuration: {e}")),
|
||||
},
|
||||
Err(e) => {
|
||||
println!("Sending emails has been disabled: {e}");
|
||||
Err(_) => {
|
||||
println!("Sending emails is disabled");
|
||||
Ok(None)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue