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

Raise Exception when MailerPreview Method Fails to Return a Mailer #91

Open
jonmchan opened this issue Oct 3, 2023 · 0 comments
Open

Comments

@jonmchan
Copy link
Contributor

jonmchan commented Oct 3, 2023

Small developer quality of life feature suggestion:

When the MailerPreview method does not return a proper Mailer object, we get a non-obvious error as the gem tries to use the returned object as a mailer:

NoMethodError (undefined method `multipart?' for nil:NilClass):

Might be helpful to raise an error earlier when the method does not return the proper object such that developers don't have to dig through what is calling multipart?.

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

No branches or pull requests

1 participant