raise KeycardExportKeyException

This commit is contained in:
Andrea Franz 2021-10-08 10:50:36 +02:00
parent 54bb68ad23
commit 564af902e6
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ method keycardExportKey*(self: StatusGoBackend, derive: bool, makeCurrent: bool,
let response = keycard_go.exportKey($inputJSON)
let parsedResponse = parseJson(response)
if not parsedResponse{"ok"}.getBool():
raise KeycardSelectException(error: parsedResponse{"error"}.getStr())
raise KeycardExportKeyException(error: parsedResponse{"error"}.getStr())
result = KeycardExportedKey(
privKey: parsedResponse["privateKey"].getStr(),