Skip to content

[FIX] Implement error handling for SendGrid responses and validate email content#3

Merged
chris-okuda merged 1 commit into
mainfrom
chrisokuda/sc-38732/add_team_member_fixes
May 28, 2026
Merged

[FIX] Implement error handling for SendGrid responses and validate email content#3
chris-okuda merged 1 commit into
mainfrom
chrisokuda/sc-38732/add_team_member_fixes

Conversation

@chris-okuda

Copy link
Copy Markdown
Collaborator

Scope of changes

Implement error handling for SendGrid responses and validate email content

  • Added sendGridResponseError function to handle non-retryable errors for SendGrid 4xx responses.
  • Updated ToSendGrid and ToSMTP methods to return ErrEmptyContent if email content is empty.
  • Introduced tests for empty email content and SendGrid error handling.
  • Enhanced error propagation in the RenderString function.

Type of change

  • bug fix
  • new feature
  • documentation
  • testing
  • other (describe)

Acceptance criteria

This change will be merged with no review required.

Author checklist

  • I have manually tested the change and/or added automation in the form of unit tests or integration tests
  • I have updated the dependencies list
  • I have added new test fixtures as needed to support added tests
  • I have added or updated the documentation

…ail content

- Added `sendGridResponseError` function to handle non-retryable errors for SendGrid 4xx responses.
- Updated `ToSendGrid` and `ToSMTP` methods to return `ErrEmptyContent` if email content is empty.
- Introduced tests for empty email content and SendGrid error handling.
- Enhanced error propagation in the `RenderString` function.
@chris-okuda chris-okuda self-assigned this May 28, 2026

@daniellemaxwell daniellemaxwell left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good!

@chris-okuda chris-okuda merged commit bc61aa2 into main May 28, 2026
2 checks passed
@chris-okuda chris-okuda deleted the chrisokuda/sc-38732/add_team_member_fixes branch May 28, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants