GPG Agent lacks verbose error
Bug description
When using GPG Agent, and it fails to encode a message, only a very simple error is returned:
error while sending <text> ( )
The only way of finding out what is actually going on is by using gdb backtrace (bt), as the logging in verbose and syslog also lack the greater details.
In my case the key-trust was too low, but the only eventually I found out replicating the GPG Agent command in the terminal:
echo <text> | gpg --status-fd 2 --no-tty --use-agent --encrypt --recipient "<key-id>" --armor
Better feedback on the actual issue would help people get it working. I know others who have refrained from using GPG Agent just because they couldn't figure out what whas going wrong.
Steps to reproduce
Use a misconfigured GPG Agent setup (for example without the neccessary trust in the receipient's key-id) and try to send a message.
Software versions
OS version: Ubuntu Gnome 15.04
GTK version: 3.14.12
PyGTK version: 2.24.0-3ubuntu4