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

Meaningful exception classes on gpg failure #66

Open
mkamensky opened this issue Feb 4, 2021 · 1 comment
Open

Meaningful exception classes on gpg failure #66

mkamensky opened this issue Feb 4, 2021 · 1 comment

Comments

@mkamensky
Copy link

Hi,

I'm using the library in a rails application, and was getting NULL pointer exceptions when trying to deliver an email. Eventually traced it to this line:

raise $! if mail.raise_encryption_errors

but only a serious struggle. Would it be possible to wrap it in some more meaningful exception? Thanks!

@mkamensky
Copy link
Author

Actually, I guess just not rescuing, or raising the same exception in place of $! would be sufficient

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