code cleaup
All checks were successful
Dotnet build and test / build (pull_request) Successful in 12m25s
All checks were successful
Dotnet build and test / build (pull_request) Successful in 12m25s
This commit is contained in:
parent
d5f11e83a4
commit
93fd4e61ad
3 changed files with 4 additions and 36 deletions
|
|
@ -140,6 +140,10 @@ namespace Yavsc.Services
|
|||
catch (FormatException ex)
|
||||
{
|
||||
logger.LogError(ex, "Refusing to send email because the recipient or sender address is malformed. To={To}, From={From}", email, siteSettings.Owner.EMail);
|
||||
logger.LogError(ex.Message);
|
||||
if (ex.InnerException!=null)
|
||||
logger.LogError(ex.InnerException.Message);
|
||||
|
||||
return string.Empty;
|
||||
}
|
||||
catch (SmtpCommandException ex)
|
||||
|
|
|
|||
Loading…
Reference in a new issue