gpg 2.1: no error message if gpg-agent or pinentry fail

Patrick Brunschwig patrick at
Wed Dec 23 18:29:54 CET 2015

On 05.04.15 17:33, Patrick Brunschwig wrote:
> On 11.03.15 16:45, Werner Koch wrote:
>> Trying to decrypt something gives these messages:
>> [...] gpg: public key decryption failed: Tribute to D. A. [GNUPG:]
>> ERROR pkdecrypt_failed 67108906 [GNUPG:] BEGIN_DECRYPTION [GNUPG:]
>> DECRYPTION_FAILED gpg: decryption failed: No secret key [GNUPG:]
>> Right you can't see the source of the error.  Thus we need to look
>> at the ERROR status line:
>> $ gpg-error 67108906 67108906 = (4, 42) = (GPG_ERR_SOURCE_GPGAGENT,
>> GPG_ERR_TRIBUTE_TO_D_A) = (GPG Agent, Tribute to D. A.)

I have to bring up this topic again for gpg 2.1.10.

If I use "gpg2 --status-fd 1 --sign", and there is a pinentry error,
there is the following error message:

[GNUPG:] FAILURE sign 67108949

But for "gpg2 --status-fd 1 --decrypt" there is no such message anymore,
and no "ERROR" message either.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20151223/b8d730d2/attachment-0001.sig>

More information about the Gnupg-devel mailing list