Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Nov 17, 2023
1 parent b0ddc46 commit 996e201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pynitrokey/nk3/admin_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def factory_reset(self) -> None:
reply = self._call(AdminCommand.FACTORY_RESET, response_len=1)
if reply is None:
local_critical(
"Factory reset is not supported by the device", support_hint=False
"Factory reset is not supported by the firmware version on the device", support_hint=False
)
return
except OSError as e:
Expand All @@ -206,7 +206,7 @@ def factory_reset_app(self, application: str) -> None:
)
if reply is None:
local_critical(
"Application Factory reset is not supported by the device",
"Application Factory reset is not supported by the firmware version on the device",
support_hint=False,
)
return
Expand Down

0 comments on commit 996e201

Please sign in to comment.