diff --git a/encoding/proto/proto.go b/encoding/proto/proto.go index 6fff15a715e..66d5cdf03ec 100644 --- a/encoding/proto/proto.go +++ b/encoding/proto/proto.go @@ -50,7 +50,7 @@ func (codec) Marshal(v any) ([]byte, error) { func (codec) Unmarshal(data []byte, v any) error { vv := messageV2Of(v) if vv == nil { - return fmt.Errorf("failed to marshal, message is %T, want proto.Message", v) + return fmt.Errorf("failed to unmarshal, message is %T, want proto.Message", v) } return proto.Unmarshal(data, vv)