1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-22 20:32:05 +01:00

Improve error message when no acceptable certificate signature is found

Relates to #457
This commit is contained in:
Paul Schaub 2024-11-19 13:59:41 +01:00
parent b99822f405
commit fdf49cfafb
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -71,7 +71,9 @@ abstract class KeyAccessor(protected val info: KeyRingInfo, protected val key: S
return info.latestDirectKeySelfSignature return info.latestDirectKeySelfSignature
} }
return info.getCurrentSubkeyBindingSignature(key.subkeyId)!! return info.getCurrentSubkeyBindingSignature(key.subkeyId)
?: throw NoSuchElementException(
"Key does not carry acceptable self-signature signature.")
} }
} }