diff --git a/server/src/infra/auth_service.rs b/server/src/infra/auth_service.rs index a1d3fca..67def73 100644 --- a/server/src/infra/auth_service.rs +++ b/server/src/infra/auth_service.rs @@ -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() }