fix formatting of unrecognized BitLocker erorr (#21220)

for https://github.com/fleetdm/fleet/issues/21221

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- [x] Manual QA for all new/changed functionality
This commit is contained in:
Roberto Dip
2024-08-09 11:52:50 -03:00
committed by GitHub
parent 973715b0ee
commit 73d0f465cc
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -0,0 +1,2 @@
* Fixed a formatting error when an unrecognized error happens during BitLocker encryption.
@@ -85,7 +85,7 @@ func encryptErrHandler(val int32) error {
case ErrorCodeProtectorExists:
msg = "key protector cannot be added; only one key protector of this type is allowed for this drive"
default:
msg = "error code returned during encryption: %d"
msg = fmt.Sprintf("error code returned during encryption: %d", val)
}
return &EncryptionError{msg, val}