mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-25 22:02:05 +01:00
Improve error message when no acceptable certificate signature is found
Relates to #457
This commit is contained in:
parent
b99822f405
commit
fdf49cfafb
1 changed files with 3 additions and 1 deletions
|
@ -71,7 +71,9 @@ abstract class KeyAccessor(protected val info: KeyRingInfo, protected val key: S
|
|||
return info.latestDirectKeySelfSignature
|
||||
}
|
||||
|
||||
return info.getCurrentSubkeyBindingSignature(key.subkeyId)!!
|
||||
return info.getCurrentSubkeyBindingSignature(key.subkeyId)
|
||||
?: throw NoSuchElementException(
|
||||
"Key does not carry acceptable self-signature signature.")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue