mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Merge pull request #2560 from jku/tweak-sign-failure
metadata API: Tweak exception message on sign failure
This commit is contained in:
commit
b5bb27fa94
1 changed files with 1 additions and 1 deletions
|
|
@ -384,7 +384,7 @@ def sign(
|
|||
try:
|
||||
signature = signer.sign(bytes_data)
|
||||
except Exception as e:
|
||||
raise UnsignedMetadataError("Problem signing the metadata") from e
|
||||
raise UnsignedMetadataError(f"Failed to sign: {e}") from e
|
||||
|
||||
if not append:
|
||||
self.signatures.clear()
|
||||
|
|
|
|||
Loading…
Reference in a new issue