jkraemer/mail-gpg

Meaningful exception classes on gpg failure

mkamensky opened this issue · 1 comments

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!

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