email config: dont show error on deserialization failure

This commit is contained in:
Philippe Loctaux 2023-06-29 18:39:07 +02:00
parent acbb1b2433
commit 477656a42e

View file

@ -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)
}
}