Uses standardized error format for Publisher gRPC errs. (#2378)

When the CA and the VA encounter an error from grpc.ServerSetup() they
print a message of the form:

> "Unable to setup XXX gRPC server", where XXX is "CA", or "VA".

Prior to this commit when the publisher encounters the same error it
prints:

> "Failed to setup gRPC server".

This commit updates the Publisher cmd to use the same gRPC error message
format as the CA and the VA.
This commit is contained in:
Daniel McCarney 2016-12-01 14:31:14 -05:00 committed by Jacob Hoffman-Andrews
parent a37bb5638d
commit 63f5c85b0b
1 changed files with 2 additions and 2 deletions

View File

@ -86,12 +86,12 @@ func main() {
var grpcSrv *grpc.Server
if c.Publisher.GRPC != nil {
s, l, err := bgrpc.NewServer(c.Publisher.GRPC, scope)
cmd.FailOnError(err, "Failed to setup gRPC server")
cmd.FailOnError(err, "Unable to setup Publisher gRPC server")
gw := bgrpc.NewPublisherServerWrapper(pubi)
pubPB.RegisterPublisherServer(s, gw)
go func() {
err = s.Serve(l)
cmd.FailOnError(err, "gRPC service failed")
cmd.FailOnError(err, "Publisher gRPC service failed")
}()
grpcSrv = s
}