aboutsummaryrefslogtreecommitdiff
path: root/cmd/fscrypt/prompt.go
diff options
context:
space:
mode:
authorAlastair Hughes <hobbitalastair@gmail.com>2021-01-15 23:08:54 +1300
committerEric Biggers <ebiggers3@gmail.com>2021-01-19 10:18:02 -0800
commit99ef2db47957ed986c945574e6133abab8d76d45 (patch)
tree082b627915fd2d41001a178190322f344ff76910 /cmd/fscrypt/prompt.go
parentb74cd30fd7b0ebf30ef570f7bfa78dfcd62d80d5 (diff)
cmd/fscrypt: fix missing protector error format
Update #272
Diffstat (limited to 'cmd/fscrypt/prompt.go')
-rw-r--r--cmd/fscrypt/prompt.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/fscrypt/prompt.go b/cmd/fscrypt/prompt.go
index 210d7bc..d34a18a 100644
--- a/cmd/fscrypt/prompt.go
+++ b/cmd/fscrypt/prompt.go
@@ -282,7 +282,8 @@ func promptForProtector(options []*actions.ProtectorOption) (int, error) {
}
if numLoadErrors > 0 {
- fmt.Print(wrapText("NOTE: %d of the %d protectors failed to load. "+loadHelpText, 0))
+ loadWarning := fmt.Sprintf("NOTE: %d of the %d protectors failed to load. ", numLoadErrors, numOptions)
+ fmt.Print(wrapText(loadWarning+loadHelpText, 0) + "\n")
}
for {