The behaviour of GnuPG is inconsistent with respect to the messages it puts out when asked to decrypt, but there is no secret key corresponding to the public key used to encrypt the message. Here's GnuPG 1.4.22:
2021-08-20 21:43:58,058 DEBUG gnupg Thread-10 980 [GNUPG:] ENC_TO 24819C9B75BCAD8D 16 0 2021-08-20 21:43:58,058 DEBUG gnupg Thread-10 980 gpg: encrypted with ELG-E key, ID 75BCAD8D 2021-08-20 21:43:58,058 DEBUG gnupg Thread-10 980 [GNUPG:] NO_SECKEY 24819C9B75BCAD8D 2021-08-20 21:43:58,058 DEBUG gnupg Thread-10 980 [GNUPG:] BEGIN_DECRYPTION 2021-08-20 21:43:58,058 DEBUG gnupg Thread-10 980 [GNUPG:] DECRYPTION_FAILED 2021-08-20 21:43:58,058 DEBUG gnupg Thread-10 980 gpg: decryption failed: secret key not available 2021-08-20 21:43:58,058 DEBUG gnupg Thread-10 980 [GNUPG:] END_DECRYPTION
and here's 2.2.19, which behaves similarly:
2021-08-20 20:25:39,629 DEBUG gnupg Thread-10 980 [GNUPG:] ENC_TO 1A453EB8AC49419F 16 0 2021-08-20 20:25:39,629 DEBUG gnupg Thread-10 980 gpg: encrypted with ELG key, ID 1A453EB8AC49419F 2021-08-20 20:25:39,629 DEBUG gnupg Thread-10 980 [GNUPG:] NO_SECKEY 1A453EB8AC49419F 2021-08-20 20:25:39,629 DEBUG gnupg Thread-10 980 [GNUPG:] BEGIN_DECRYPTION 2021-08-20 20:25:39,629 DEBUG gnupg Thread-10 980 [GNUPG:] DECRYPTION_FAILED 2021-08-20 20:25:39,629 DEBUG gnupg Thread-10 980 gpg: decryption failed: No secret key 2021-08-20 20:25:39,629 DEBUG gnupg Thread-10 980 [GNUPG:] END_DECRYPTION
but in 2.3.1, the behaviour has changed:
2021-08-20 21:44:42,520 DEBUG gnupg Thread-10 980 [GNUPG:] ENC_TO 031F36181FE503A2 16 0 2021-08-20 21:44:42,520 DEBUG gnupg Thread-10 980 gpg: encrypted with ELG key, ID 031F36181FE503A2 2021-08-20 21:44:42,521 DEBUG gnupg Thread-10 980 gpg: public key decryption failed: No secret key 2021-08-20 21:44:42,521 DEBUG gnupg Thread-10 980 [GNUPG:] ERROR pkdecrypt_failed 33554449 2021-08-20 21:44:42,521 WARNING gnupg Thread-10 651 potential problem: ERROR: pkdecrypt_failed 33554449 2021-08-20 21:44:42,521 DEBUG gnupg Thread-10 980 [GNUPG:] BEGIN_DECRYPTION 2021-08-20 21:44:42,521 DEBUG gnupg Thread-10 980 [GNUPG:] DECRYPTION_FAILED 2021-08-20 21:44:42,521 DEBUG gnupg Thread-10 980 gpg: decryption failed: No secret key 2021-08-20 21:44:42,524 DEBUG gnupg Thread-10 980 [GNUPG:] END_DECRYPTION 2021-08-20 21:44:42,524 DEBUG gnupg Thread-10 980 gpg: [don't know]: invalid packet (ctb=73) 2021-08-20 21:44:42,524 DEBUG gnupg Thread-10 980 [GNUPG:] NODATA 3
Clearly GnuPG 2.3.1 knows there's no secret key, but no [GNUPG:] NO_SECKEY XXX is emitted - and this causes breakage because useful information is lost due to the absence of that message.