catching email exceptions

This commit is contained in:
Antonis Lempesis 2021-10-21 10:36:16 +00:00
parent 460156d734
commit 9abeb856a6
1 changed files with 2 additions and 2 deletions

View File

@ -657,8 +657,8 @@ LOGGER.debug("json: " + jsonArray);
try {
emailUtils.sendAdminRegisterInterfaceEmail(e, comment, repositoryInterface, SecurityContextHolder.getContext().getAuthentication());
emailUtils.sendUserRegisterInterfaceEmail(e, comment, repositoryInterface, SecurityContextHolder.getContext().getAuthentication());
} catch (Exception e) {
LOGGER.error("Error sending emails: " + e);
} catch (Exception ex) {
LOGGER.error("Error sending emails: " + ex);
}
submitInterfaceValidation(e, registeredBy, repositoryInterface, false);