Skip to content

Commit

Permalink
error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanbrudiu committed Jul 30, 2024
1 parent 826dbe3 commit eb3463f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HamEvent/Controllers/VerificationController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ public class VerificationController : Controller
private readonly TokenService _tokenService;
private readonly ICoreMvcMailer _mailer;
private readonly MailerSettings _mailerSettings;
private readonly ILogger<HamEventController> _logger;
private readonly ILogger<VerificationController> _logger;

public VerificationController(ILogger<HamEventController> logger, IMapper mapper, ICoreMvcMailer mailer, IOptions<MailerSettings> mailerSettings, TokenService tokenService)
public VerificationController(ILogger<VerificationController> logger, IMapper mapper, ICoreMvcMailer mailer, IOptions<MailerSettings> mailerSettings, TokenService tokenService)
{
_tokenService = tokenService;
_logger = logger;
Expand Down Expand Up @@ -49,7 +49,7 @@ public async Task<IActionResult> SendVerificationEmail(string email)
catch(Exception ex)
{
_logger.LogError(MyLogEvents.SendingEmail, ex, "Error Sending Email");
return StatusCode(500, $"Email send error!");
return StatusCode(500, $"Email send error!{ex.Message}");
}
return Ok();
}
Expand Down

0 comments on commit eb3463f

Please sign in to comment.