Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #718: Improve error handle for
Ledger
devices
0d5412a Improve error handle for `Ledger` devices (Bruno Garcia) Pull request description: Discovered it while reviewing [#bitcoin/24313](bitcoin/bitcoin#24313). The `ledger_exception` function was not dealing with `ApduException` exceptions. It's basically similar to `BTChipException` and we can use its "error code" to return friendly error messages. e.g for `displayaddress`: **before**: `{"error": "Exception: invalid status 0x6985", "code": -13}` **after**: `{"error": "display_singlesig_address canceled", "code": -14}` ACKs for top commit: achow101: ACK 0d5412a Tree-SHA512: f4dbe57e5f41c67a19ce6e9c0f4b4af8184ff360cfc3709f4fb15f55014906c0a6c04a869a9315083aac18175dd8b921c022d18826d3e1f31d4bdb4a736b6171
- Loading branch information