In gpg 2.1.4 the command
echo "GET_PASSPHRASE --no-ask XXXXXXXXXX a a a" | gpg-connect-agent
returned
- "OK PASSPHRASE" in case the passphrase was already cached
- "ERR 67108922 No data <GPG Agent>" in case the passphrase was not in cache
This behavior changed in gpg 2.1.5 and no matter if the passphrase is already
cached or not, gpg-agent always return the error message above.