device_trezor: show error when operations are cancelled

This commit is contained in:
jpk68
2026-08-15 14:50:48 -04:00
parent 3646f648db
commit 617cb6adcd
+2
View File
@@ -160,6 +160,8 @@ namespace proto {
public:
using FailureException::FailureException;
CancelledException(): FailureException("Trezor returned: cancelled operation"){}
CancelledException(boost::optional<uint32_t> code, boost::optional<std::string> message)
: FailureException(code, message) { reason = "Trezor returned: cancelled operation"; }
};
class PinExpectedException : public FailureException {