Skip to content

Commit

Permalink
Log error when email fails to send (lukevella#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukevella authored Sep 14, 2022
1 parent a5326c1 commit 313d2ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/send-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const sendEmail = async (params: SendEmailParameters) => {
subject: params.subject,
html: params.html,
});
} catch {
console.log("SMTP server details are not configured or are incorrect");
} catch (e) {
console.error(e);
}
};

0 comments on commit 313d2ea

Please sign in to comment.