Try to certifiy a key with a private key on a smartcard. Input wrong PIN.
Result: "general error"
Expected: "wrong PIN"
I'm asked three times for the passphrase, but otherwise I can confirm this.
Possible root cause: gpg does not emit a proper status error.