Skip to content

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

Open
@jonmchan

Description

@jonmchan

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?.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions