BitBoxSwiss / bitbox02-firmware

Firmware code of the BitBox02 hardware wallet
https://bitbox.swiss/bitbox02
Apache License 2.0
216 stars 80 forks source link

releases/describe_signed_firmware: add helpful error msg #1180

Closed benma closed 4 months ago

benma commented 4 months ago

When this script is called on an unsigned binary, there is a warning

Unrecognized firmware edition

but the script then still parses and dumps information that is completely wrong.

This commit outputs a helpful error message instead and exists.