coldcard: show multisig address: more intuitive error msg

cause of error is probably almost always what msg says
This commit is contained in:
SomberNight 2019-09-18 17:41:26 +02:00
parent 9c83bc1008
commit 1236b07abf
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -477,8 +477,11 @@ class Coldcard_KeyStore(Hardware_KeyStore):
self.handler.finished() self.handler.finished()
except CCProtoError as exc: except CCProtoError as exc:
self.logger.exception('Error showing address') self.logger.exception('Error showing address')
self.handler.show_error('{}\n\n{}'.format( self.handler.show_error('{}.\n{}\n\n{}'.format(
_('Error showing address') + ':', str(exc))) _('Error showing address'),
_('Make sure you have imported the correct wallet description '
'file on the device for this multisig wallet.'),
str(exc)))
except BaseException as exc: except BaseException as exc:
self.logger.exception('') self.logger.exception('')
self.handler.show_error(exc) self.handler.show_error(exc)