grpc connection management no longer yields same errors from dial; also fix fmt issue in error message

This commit is contained in:
Josh Humphries
2017-12-05 01:53:17 -05:00
parent 9dfaded6cf
commit 45e17ae10b
2 changed files with 8 additions and 26 deletions

View File

@@ -685,7 +685,7 @@ func fetchAllExtensions(source DescriptorSource, ext *dynamic.ExtensionRegistry,
fds, err := source.AllExtensionsForType(msgTypeName)
for _, fd := range fds {
if err = ext.AddExtension(fd); err != nil {
return fmt.Errorf("could not register extension %d of type %s: %v", fd.GetFullyQualifiedName(), msgTypeName, err)
return fmt.Errorf("could not register extension %s of type %s: %v", fd.GetFullyQualifiedName(), msgTypeName, err)
}
}
}