Add more verbose error handling

To help diagnose this problem. I think we might prefer to leave this
on hold until we merge the new gnupg module.