Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
This commit is contained in:
iosmanthus 2024-06-06 16:40:07 +08:00
parent 57783f3084
commit b0e9f7cc99
No known key found for this signature in database
GPG key ID: DEE5BAABFE092169

View file

@ -474,7 +474,7 @@ func (app *appContext) validateSopsFile(s *secret, file *secretFile) error {
if app.checkMode != Manifest && (s.Format != Binary && s.Format != Dotenv && s.Format != Ini) {
_, err := recurseSecretKey(s.Format, file.keys, s.Key)
if err != nil {
return fmt.Errorf("secret %s in %s is not valid: %w", s.Name, s.SopsFile, err)
return fmt.Errorf("secret %s in %s is not valid: %w (format: %s)", s.Name, s.SopsFile, err, s.Format)
}
}
return nil