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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user