server: Report errors sending email

This commit is contained in:
Valentin Tolmer authored and nitnelave committed 2022-04-17 23:14:10 +02:00
1 parent 0ccedc6717
commit 3a6c5fdc65
1 file changed
+1
+1
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()
}