Skip to content

Commit

Permalink
Use consistent wording
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Mar 26, 2024
1 parent 838a0ee commit 7b1b5a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ykman/_cli/fido.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def change_pin(pin, new_pin):

except CtapError as e:
if e.code == CtapError.ERR.PIN_POLICY_VIOLATION:
raise CliFail("New PIN doesn't meet policy requirements.")
raise CliFail("New PIN doesn't meet complexity requirements.")
else:
_fail_pin_error(ctx, e, "Failed to change PIN: %s")

Expand All @@ -394,7 +394,7 @@ def set_pin(new_pin):
client_pin.set_pin(new_pin)
except CtapError as e:
if e.code == CtapError.ERR.PIN_POLICY_VIOLATION:
raise CliFail("New PIN doesn't meet policy requirements.")
raise CliFail("New PIN doesn't meet complexity requirements.")
else:
raise CliFail(f"Failed to set PIN: {e.code}")

Expand Down

0 comments on commit 7b1b5a7

Please sign in to comment.