server: Report errors sending email

This commit is contained in:
Valentin Tolmer 2022-04-15 19:52:14 +02:00 committed by nitnelave
parent 0ccedc6717
commit 3a6c5fdc65

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