BitBoxSwiss / bitbox02-firmware

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

api: display error type on screen if create/restore fails #991

Closed benma closed 1 year ago

benma commented 1 year ago

If there was a securechip or memory error, creating or restoring a wallet would show and return a generic looking error. If e.g. the securechip is the problem, we want to see that, so the user can better report the problem.

We might also return a specific error code to the host, but for now displaying the error will do (same as do when unlocking a device fails).