Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Generalize error message when decoding sealed secrets
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Marttinen <dennis@weave.works>
  • Loading branch information
twelho committed Aug 3, 2020
1 parent 9947512 commit 9ba0b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/wksprovider/machine/os/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ func processSecret(b *plan.Builder, key *rsa.PrivateKey, configDir, secretFileNa
// In the future, if we wish to support other kinds of secrets than SealedSecrets, we
// can just change this to do .Decode(fr), and switch on the type
if err := scheme.Serializer.Decoder().DecodeInto(fr, ss); err != nil {
return nil, nil, "", nil, errors.Wrapf(err, "File %q does not contain a sealed secret, couldn't decode", secretFileName)
return nil, nil, "", nil, errors.Wrapf(err, "couldn't decode the file %q into a sealed secret", secretFileName)
}

fingerprint, err := crypto.PublicKeyFingerprint(&key.PublicKey)
Expand Down

0 comments on commit 9ba0b10

Please sign in to comment.