From 99ef2db47957ed986c945574e6133abab8d76d45 Mon Sep 17 00:00:00 2001 From: Alastair Hughes Date: Fri, 15 Jan 2021 23:08:54 +1300 Subject: cmd/fscrypt: fix missing protector error format Update #272 --- cmd/fscrypt/prompt.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd/fscrypt/prompt.go') 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 { -- cgit v1.2.3