diff options
| author | alliasgher <alliasgher123@gmail.com> | 2026-04-14 14:58:37 +0500 |
|---|---|---|
| committer | Eric Biggers <ebiggers3@gmail.com> | 2026-04-14 23:31:20 -0700 |
| commit | 9e4a9a1ff155ee3c4b27b74a8261414f3c338bdd (patch) | |
| tree | 81de73a97b9e7ea866bd78455e1fb979d5f5b1e9 /cmd | |
| parent | 2dee71cdc2a7bccead530a42dfd10736e8de45a9 (diff) | |
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 #439
Signed-off-by: alliasgher <alliasgher123@gmail.com>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/fscrypt/errors.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/fscrypt/errors.go b/cmd/fscrypt/errors.go index c4814f4..e4da884 100644 --- a/cmd/fscrypt/errors.go +++ b/cmd/fscrypt/errors.go @@ -272,7 +272,8 @@ func getErrorSuggestions(err error) string { return fmt.Sprintf("If desired, use %s to automatically run destructive operations.", shortDisplay(forceFlag)) case ErrSpecifyProtector: - return fmt.Sprintf("Use %s to specify a protector.", shortDisplay(protectorFlag)) + return fmt.Sprintf("Use %s or %s to specify a protector.", + shortDisplay(protectorFlag), shortDisplay(unlockWithFlag)) case ErrSpecifyKeyFile: return fmt.Sprintf("Use %s to specify a key file.", shortDisplay(keyFileFlag)) case ErrDropCachesPerm: |