From ae24672c54e4b28b10d005fcfce162fb38569bad Mon Sep 17 00:00:00 2001 From: DavHau Date: Wed, 4 Dec 2024 12:00:06 +0700 Subject: [PATCH] secrets: improve error message on wrong age key format --- pkgs/clan-cli/clan_cli/secrets/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/clan-cli/clan_cli/secrets/types.py b/pkgs/clan-cli/clan_cli/secrets/types.py index 52d819ea6..5293ab11f 100644 --- a/pkgs/clan-cli/clan_cli/secrets/types.py +++ b/pkgs/clan-cli/clan_cli/secrets/types.py @@ -28,7 +28,7 @@ def public_or_private_age_key_type(arg_value: str) -> str: return line.strip() if line.startswith("AGE-SECRET-KEY-"): return get_public_age_key(line) - msg = f"Please provide an age key starting with age1 or AGE-SECRET-KEY-, got: '{arg_value}'" + msg = f"Please provide an age public key starting with age1 or an age private key AGE-SECRET-KEY-, got: '{arg_value}'" raise ClanError(msg)