server: Report errors sending email

This commit is contained in:
Valentin Tolmer 2022-04-15 19:52:14 +02:00
parent cfb15ecabb
commit 0234ba7e48

View File

@ -156,6 +156,7 @@ where
&data.mail_options,
) {
warn!("Error sending email: {:#?}", e);
return HttpResponse::InternalServerError().body(format!("Could not send email: {}", e));
}
HttpResponse::Ok().finish()
}