From 7b1b5a7041392356f044f3e11ff7f365abe11234 Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Tue, 26 Mar 2024 14:52:21 +0100 Subject: [PATCH] Use consistent wording --- ykman/_cli/fido.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ykman/_cli/fido.py b/ykman/_cli/fido.py index 8fe0377c..1c1b5e7b 100755 --- a/ykman/_cli/fido.py +++ b/ykman/_cli/fido.py @@ -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") @@ -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}")