Skip to content

Commit 3a378da

Browse files
committed
Merge remote-tracking branch 'origin/main' into ecs-multi-fields
2 parents 970e166 + 4a08609 commit 3a378da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/packages/changelog/yaml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func SetManifestVersion(d []byte, version string) ([]byte, error) {
108108

109109
// Manifest is a document, with a single element, that should be a map.
110110
if len(node.Content) == 0 || node.Content[0].Kind != yaml.MappingNode {
111-
return nil, fmt.Errorf("unexpected manifest content: %w", err)
111+
return nil, errors.New("unexpected manifest content: not a map")
112112
}
113113

114114
setYamlMapValue(node.Content[0], "version", version)

0 commit comments

Comments
 (0)