Skip to content

Commit

Permalink
feat(decrypt): add something to make sops error message friendlier
Browse files Browse the repository at this point in the history
Fixes: #548

Signed-off-by: budimanjojo <budimanjojo@gmail.com>
  • Loading branch information
budimanjojo committed Jul 29, 2024
1 parent 060aeca commit d54970b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/decrypt/decrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func DecryptYamlWithSops(filePath string) ([]byte, error) {
slog.Debug(fmt.Sprintf("%s is SOPS encrypted, decrypting", filePath))
decrypted, err := decrypt.Data(data, "yaml")
if err != nil {
return nil, err
return nil, fmt.Errorf("SOPS decryption failed: %w", err)
}
return decrypted, nil
}
Expand Down

0 comments on commit d54970b

Please sign in to comment.