mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-03 17:54:00 +00:00
27ea64ff2c
A common mistake is to pass proto.Message to protoreflect.ValueOf instead of a protoreflect.Message. Specialize for this case and provide a panic message that is more helpful. Change-Id: I5def43341aa9607182edde309dea2823e61c1fdb Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/234117 Reviewed-by: Damien Neil <dneil@google.com>