reflect/protoregistry: add link to namespace conflict FAQ

Updates golang/protobuf#1039.

Change-Id: Ia9f80da5dab1e6cd3cf9ad512b78b63b32065c31
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/221782
Reviewed-by: Herbie Ong <herbie@google.com>
This commit is contained in:
Damien Neil 2020-03-02 09:43:12 -08:00
parent fea7d5276d
commit 0f2b33b67a

View File

@ -31,8 +31,8 @@ import (
var ignoreConflict = func(d protoreflect.Descriptor, err error) bool {
log.Printf(""+
"WARNING: %v\n"+
"A future release will panic on registration conflicts.\n"+
// TODO(blocks): Add a URL pointing to documentation on how to resolve conflicts.
"A future release will panic on registration conflicts. See:\n"+
"https://developers.google.com/protocol-buffers/docs/reference/go/faq#namespace-conflict\n"+
"\n", err)
return true
}