Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form submission: error handling and logging for email notifications #114

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

rosado
Copy link
Collaborator

@rosado rosado commented Jul 10, 2024

Currently email notification failures are not handled properly. We want the errors handled and logged.

Trello

@rosado rosado added the enhancement New feature or request label Jul 10, 2024
@rosado rosado force-pushed the rosado/3338-send-email-fail-handling branch from 990d6a3 to afdd200 Compare July 10, 2024 11:24
async post (req, res, next) {
const result = await this.sendEmails(req, res, next)
for (const err of (result.errors ?? [])) {
console.error(err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be addressed in a later ticket, but as we have now merged the repos we have access to a logger. I'll add a tech debt ticket to update all console messages in the submit part of this repo to use the logger instead

@GeorgeGoodall GeorgeGoodall merged commit a011fbe into main Jul 10, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants