Skip to content

Commit

Permalink
Fix format string (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfus authored Aug 15, 2024
1 parent 82f0ab5 commit 00011dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ func (u *unmarshaler) unmarshalField(node *yaml.Node, field protoreflect.FieldDe
if oneofDesc := field.ContainingOneof(); oneofDesc != nil {
// Check if another field in the oneof is already set.
if whichOne := message.ProtoReflect().WhichOneof(oneofDesc); whichOne != nil {
u.addErrorf(node, fmt.Sprintf("field %v is already set for oneof %v", whichOne.Name(), oneofDesc.Name()))
u.addErrorf(node, "field %v is already set for oneof %v", whichOne.Name(), oneofDesc.Name())
return
}
}
Expand Down

0 comments on commit 00011dd

Please sign in to comment.