Skip to content

cmd/fscrypt: mention --unlock-with in protector error hint#449

Merged
ebiggers merged 1 commit intogoogle:masterfrom
alliasgher:fix-unlock-error-message
Apr 15, 2026
Merged

cmd/fscrypt: mention --unlock-with in protector error hint#449
ebiggers merged 1 commit intogoogle:masterfrom
alliasgher:fix-unlock-error-message

Conversation

@alliasgher
Copy link
Copy Markdown
Contributor

Fixes #439. The error hint for multiple protectors only mentioned --protector, but for the unlock command the correct flag is --unlock-with. Now both flags are shown.

The error hint for ErrSpecifyProtector only referenced --protector,
but for the unlock command the correct flag is --unlock-with. Mention
both flags so users are pointed to the right one.

Fixes google#439

Signed-off-by: alliasgher <alliasgher123@gmail.com>
@ebiggers ebiggers merged commit 9e4a9a1 into google:master Apr 15, 2026
17 of 18 checks passed
@ebiggers
Copy link
Copy Markdown
Collaborator

Merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error message tells you to use the wrong argument

2 participants